Indy 9
CommaSeparatedToStringList
See Also, Unit: IdGlobal
Fills a string list with values from a comma-delimited string.
procedure CommaSeparatedToStringList(AList: TStrings; const Value: string);
Unit
IdGlobal
Parameters
AList: TStrings
List to store the values.
const Value: string
String containing comma-delimited values.
Description
CommaSeparatedToStringList is a procedure used to fill the TStringList AList parameter with the values from the Value parameter.

AList is cleared prior to adding values in the procedure.

Value is a comma-delimited list of values to loaded in the TStringList. Value can contain items that include the comma separator by using double quotation marks to enclosed the item. For example:

'Item One, "Item Two, with comma", Item Three'

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.