Action
Deletes an item from a list.
Syntax
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.
|
Notes
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.
Example
[-] LIST OF INTEGER liNum = {...}
[ ] 10
[ ] 20
[ ] 30
[ ] 40
[ ] 50
[ ] ListDelete (liNum, 3)
[ ] Print (liNum) // prints: {10, 20, 40, 50}