System.Classes.TParser.Create
Delphi
constructor Create(Stream: TStream; AOnError: TParserErrorEvent = nil); overload;
constructor Create(Stream: TStream; const FormatSettings: TFormatSettings; AOnError: TParserErrorEvent = nil); overload;
C++
__fastcall TParser(TStream* Stream, TParserErrorEvent AOnError)/* overload */;
__fastcall TParser(TStream* Stream, const System::Sysutils::TFormatSettings &FormatSettings, TParserErrorEvent AOnError)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | System.Classes.pas System.Classes.hpp |
System.Classes | TParser |
Description
Creates a TParser class instance.
Call Create to instantiate a TParser object at runtime.
The file to be parsed is defined by Stream. AOnError optionally defines an object method to be called when a parsing error is encountered. After this method returns, an Exception is raised anyway.
The FormatSettings record parameter defines regional format settings such as DecimalSeparator used while parsing.