|Top Previous Next|
A stringlist is a simple string where each item of the list is stored in a separate line.
Lines are separated by a carriage return linefeed (chr(13)+chr(10), or CRLF).
The stringlist functions can be used to easily maintain such a list, for example to insert or delete single items.
You can also add strings with line breaks to a string list, all carriage return linefeeds are encoded automatically within the string list.
Stringlists are zero based, that means that the first item has index 0, the second item has index 1, etc. The number of items can be determined with the function "StringList_ItemCount".
The function "StringList_GetItemIndex" can be used to get the index of a specific item. If the item is not found, the function returns -1.