Indy 9
SplitColumns
See Also, Unit: IdStrings
Loads delimited strings into a TStrings instance.
procedure SplitColumns(const AData: String; AStrings: TStrings; const ADelim: String = ' ');
Unit
IdStrings
Parameters
const AData: String
Values to bhe parsed into lines in the TStrings instance.
AStrings: TStrings
TStrings to contains the separated tokens from AData.
const ADelim: String = ' '
Delimiter character for separating lines in AData. Default value is CHAR32.
Description
SplitColumns is a utility procedure that loads values from AData into the string instance AStrings. Values in AData are separated at the delimiter character ADelim, and stored as individual lines in the TStrings instance.

SplitColumns will clear the contents of AStrings prior to separating AData into lines. As lines are are located in AData, the TStrings.AddObject method is called to add the string value and a pointer to the integer position for the string value to the AStrings instance.

SplitColumns is used when TIdFTPListItems an FTP response into the columns used for an FTP listing.


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