RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TReader.ReadIdent Method

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

Pascal
function ReadIdent: string;
C++
__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.
 

 

EReadError 

Position 

Read 

ReadValue 

TValueType

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