RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TParser.Create Constructor

Creates a TParser class instance.

Pascal
constructor Create(Stream: TStream; AOnError: TParserErrorEvent = nil);
C++
__fastcall TParser(TStream Stream, TParserErrorEvent AOnError = nil);

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!