Fork 0
mirror of https://github.com/FellippeHeitor/InForm.git synced 2024-05-12 06:50:12 +00:00
5 List methods
FellippeHeitor edited this page 2017-03-14 23:35:16 -03:00

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:

SUB AddItem

Adds a new item to the end of the list.

AddItem ControlID, "Item"

SUB RemoveItem

Removes the item specified.

RemoveItem ControlID, ItemIndexToRemove%

SUB ResetList

Erases all list items.

ResetList ControlID

SUB ReplaceItem

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%)