GCW Script has implemented the following functions to work with lists:
- LISTCLEAR – deletes the content of a list
- LISTADD – adds an object to a list
- LISTINSERT – inserts at
index
an object to a list - LISTREMOVE – deletes an object at
index
from a list - LISTSHUFFLE – mixes a list
- LISTSORT – sorts a list ascending or descending
- LISTGET – reads an object at index
- LISTADDALL – adds all elements from a list to a list
- LISTISEMPTY – checks if a list is empty
- LISTISNOTEMPTY – checks if a list is not empty
- LISTLENGTH – returns the length of a list – the number of objects of a list
- LISTTOSTRING – converts a list to a string
- LISTFROM – creates a new list from an object
To create a list you have to use the command DIM:
DIM variable