Quick Controls: method getSize

Hi all,
I can find a method getSize in the MIDI Remote API under QuickControls.
Can someone tell me what this method is good for and post a code snippet here as an example?


This returns the number of all Quick Controls. Same as you can get the number of Insert slots and Sends. This is useful, if you want to iterate over the Quick Controls, Inserts or Sends. Now we have 8 QCs, 16 Inserts and 8 Send slots, but this might change in the future. So you can ask Cubase how many slots does it provide and you can iterate over all of them. Also lower Cubase editions have lower number of slots nowadays.