From 8e2815ffea53c74bb6e592674c6f9d1989e1af60 Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Wed, 21 Dec 2016 17:15:13 -0200 Subject: [PATCH] Created List methods (markdown) --- List-methods.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 List-methods.md diff --git a/List-methods.md b/List-methods.md new file mode 100644 index 0000000..ce79f03 --- /dev/null +++ b/List-methods.md @@ -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%) \ No newline at end of file