TCSVParser.SetSource procedure
Set the CSV source data.
Declaration
procedure SetSource(AStream: TStream); overload
procedure SetSource(const AString: string); overloadArguments
AStream | The stream to read CSV data from. |
AString | A string to read CSV data from. |
Description
SetSource sets the source of the CSV data to
aStream (a stream) or
aString (a string).
It calls
ResetParser to reset the parser state.
The stream is by default not owned by the parser, i.e. you must free it after it has been used.
If
FreeStream is
True, then the stream will be freed by the parser
class when it is destroyed, or when a new stream is set.See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
