ComboBox.Add
The ComboBox Control Object that is returned by the AddComboBox function has its own functions which include the Add function. The Add function adds a selectable option to the Combo Box.
Syntax |
ControlObject.Add(Text) Where ControlObject. is the name of the variable (declared in your script) that is used to store the Combo Box Control Object that is returned by the AddComboBox function. |
Description |
Adds a selectable option to the Combo Box. The option you add is inserted at the bottom of the Combo Box's list. To add an option to a different location in the list, you need to use the Combo Box's Insert function (see ComboBox.Insert). |
Arguments |
Text {string} The text that is shown for the option in the Combo Box. |
Returns |
String |
Example:
ComboBox1.Add("All Areas")
Where:
- ComboBox1 is the name of the variable that stores the ComboBox Control Object returned by the AddComboBox function
- "All Areas" is the name for the option being added.