Hello Donald,
Yes; certain controls base their functionallity in Array variables. This is good, because, we can creates Array variables too, and uses all the Arrays related actions for both control's Array variables and our own Array variables.
For example, if we are talking about Select controls, we always can get the currently selected item using a code like this:
The first argument is the Array from we want to get an specific item. In this case such Array is the Select control "Items" Array, but remember we can use this same action with any Array variable.
The second argument is the "index" we want to get from the Array. The Arrays stores the items in a zero based index, so the first item is the "0" (zero), the second item is the "1", and so on. The Select controls offer to us the "ItemIndex" variable, which stores the currently selected item in the control.
The third argument is the result variable, that is, the variable which stores the item we get from the specified Array.
Above we say the Select's "ItemIndex" stores the currently selected item in the control, and, we also can write this variable in order to select an item programatically, just by using the SetVar action:
The above action establish the first item in the Array (zero indexed, remember) as the selected item in the Select control.
As I said above, we can play with all the Arrays related actions, so, for example, we can add a new item at the end of a Select control:
We can add a new item at the start of a Select control:
We can concat a "Select2" control items into a "Select1" control items:
We can remove the last element form of a Select control:
Or remove the first element:
And finally we can continue using the other Array related actions to reverse the items, short them in various ways, search for items, etc., etc. You can start with the NewArray action in the help file and continue scrolling down for other Arrays related actions.
If you have any further question just post it Donald. :)