Skip to content
Samuel Gomes edited this page Feb 12, 2024 · 2 revisions

Lists present the user with selectable items. Dropdown-lists do the same but when they don't have focus, they only show the selected item, so that you have to click the down arrow button to see the rest of the list.

lists

You add items using the AddItem method. At design time you do so by changing the List Items property. To add multiple items, separate them using a new line escape sequence \n.

At design time, you can set the Value property to have an item saved preselected.

At run time, you can read which item is currently selected by reading the Value property:

theItem% = Control(ControlID).Value

To read the text of the selected item, use the GetItem method.

Properties editable at runtime