Deletes an item from a list.
ListDelete (lList, iIndex)
Variable | Description |
---|---|
lList | A variable containing the list to modify. inout LIST. |
iIndex | The index value of the item to delete. INTEGER. |
ListDelete deletes an item from a list. The list is modified by the call to ListDelete. After the item is deleted, all remaining items in lList move one position.
Silk Test Classic raises an exception if iIndex is greater than the number of items in the list or less than one.
[-] LIST OF INTEGER liNum = {...} [ ] 10 [ ] 20 [ ] 30 [ ] 40 [ ] 50 [ ] ListDelete (liNum, 3) [ ] Print (liNum) // prints: {10, 20, 40, 50}