-
Notifications
You must be signed in to change notification settings - Fork 4
List methods
Samuel Gomes edited this page May 9, 2023
·
2 revisions
List and Dropdown list controls' items are stored in the control's Text property, but they must be manipulated by using the following methods, because they also update important internal variables used to display the control:
Adds a new item to the end of the list.
AddItem ControlID, "Item"
Removes the item specified.
RemoveItem ControlID, ItemIndexToRemove%
Erases all list items.
ResetList ControlID
Replaces the text of the specified item with the new one provided.
ReplaceItem ControlID, ItemIndexToReplace%, "New item"
Returns an item's contents.
DesiredItem$ = GetItem$(ControlID, ItemIndexToRead%)