mirror of
https://github.com/FellippeHeitor/InForm.git
synced 2024-09-19 12:14:49 +00:00
Created List methods (markdown)
parent
eed33fb0c4
commit
8e2815ffea
1 changed files with 26 additions and 0 deletions
26
List-methods.md
Normal file
26
List-methods.md
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
[[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. An error will be raised if the item is beyond the total number of items.
|
||||||
|
|
||||||
|
RemoveItem ControlID, ItemToRemove%
|
||||||
|
|
||||||
|
##SUB ResetList
|
||||||
|
Erases all list items.
|
||||||
|
|
||||||
|
ResetList ControlID
|
||||||
|
|
||||||
|
##SUB ReplaceItem
|
||||||
|
Replaces the text of the specified item with the new one provided.
|
||||||
|
|
||||||
|
ReplaceItem ControlID, ItemToReplace%, "New item"
|
||||||
|
|
||||||
|
##FUNCTION GetItem
|
||||||
|
Returns an item's contents.
|
||||||
|
|
||||||
|
DesiredItem$ = GetItem$(ControlID, ItemToRead%)
|
Loading…
Reference in a new issue