RAD Studio VCL Reference
TReader.ReadIdent Method

Reads an identifier from the reader object's stream and returns the identifier.

function ReadIdent: string;
__fastcall AnsiString ReadIdent();

ReadIndent is a helper method used by other reader methods to read an identifying type at the current reader Position. ReadIndent first checks the value type (TValueType) by calling the ReadValue method. If the item is: 

A vaIdent type, ReadIndent calls Read and returns the identifier string value. 

A vaFalse type, ReadIdent returns the string 'False.' 

A vaTrue type, ReadIdent returns the string 'True.' 

A vaNil type, ReadIdent returns the string 'Nil.' 

Otherwise it raises an EReadError exception.

Note: The strings returned for vaFalse, vaTrue, and vaNil correspond to Delphi reserved words.


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