Appearance
TStringList
Declaration
<custom> : TStringList
Description
The TStringList object is useful for storing a list of strings. Some properties of other classes return a TStringList object. You can create your own TStringList objects by declaring them in your map code.
Search for TStringList on Google to get further detailed information about this object.
Usage
Among other things the following tasks can be achieved by working with a TStringList object
Determine the number of strings in the list
You can return the number of strings currently in the list with MyStringList.Count
Add a string into the list
You can add strings to the list using MyStringList.Add('this is the string to add')
Read a string from the list
You can retrieve string from the list by providing the index of the string ie MyStringList[i] where i is a number from 0 to MyStringList
Update a string in the list
You can update a string in the list with MyStringList[i] := 'this is the new string value', where i is the index of the string to update being a number from 0 to MyStringList.Count-1