RAD Studio VCL Reference
TParser.CheckTokenSymbol Method

Checks if the current token in the file is a symbol with a specific value.

procedure CheckTokenSymbol(const S: string);
__fastcall CheckTokenSymbol(const AnsiString S);

Call CheckTokenSymbol to check if the current token in the file is symbol named S. If the token is not a symbol, or not a symbol with the specified value, then the EParserError exception is raised, otherwise, processing continues. You can respond to this error by specifying the OnError event.

Note: Use TokenSymbolIs if you want to perform this check without raising an exception.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!