You can use the ClearFrom attribute function to delete the list starting at an index.
Syntax | ||||
ClearFrom(Index) | ||||
Return value | ||||
None | ||||
Parameter | ||||
Required |
Index |
Long |
ByVal |
The first index for removing the values |
Example:
Colors.Add({"red", "blue", "green", "brown", "yellow"})
MsgBox(Colors.JoinCSV(", ", ""))
#Shows red, blue, green, brown, yellow
Colors.ClearFrom(3)
MsgBox(Colors.JoinCSV(", ", ""))
#Shows red, blue, green