Fork 0
mirror of https://github.com/FellippeHeitor/InForm.git synced 2024-05-12 06:50:12 +00:00
6 List
Fellippe Heitor edited this page 2021-12-22 12:12:15 -03:00

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.

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