String Lists |
|
| Top Previous Next | |
String lists are lists or arrays of strings. The number of strings in a string list and the length of the strings are limited only by available memory.
DialogScript supports 32 independent string lists, which can have identifiers from 1 to 32. A new string list can be created and its identifier obtained using the @NEW function.
In addition, dialog elements such as LIST and COMBO can be treated as string lists, and can be manipulated using the same commands. (However, these dialog elements may have limitations, imposed by Windows, on the number and length of strings, and they are not as efficient as string lists when the data contained in them is manipulated directly.)
String lists can be unsorted, in which case strings remain in the order they were loaded and items may be added at the end using LIST ADD, inserted using LIST INSERT or replaced using LIST PUT. Using the LIST SEEK and LIST PUT commands, and the @MATCH and @ITEM functions, lists can be used as random access files.
Alternatively lists may be sorted, in which case DialogScript maintains the order of items and new items must only be added using LIST ADD. To replace an item in a sorted list you must delete it and then add it.
For more information on how lists are used, see Using Lists.
For information on how to load data into lists see Data Lists.