RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TReader.ReadInteger Method

Reads an integer-type number from the reader object's stream and returns its value.

Pascal
function ReadInteger: Longint;
C++
__fastcall Longint ReadInteger();

ReadInteger is a helper method used by other reader methods to read a tagged integer value at the current reader Position. ReadInteger first checks the value type (TValueType) by calling the ReadValue method. If the item is a vaString or a vaInt8, vaInt16 or vaInt32 type, ReadInteger calls Read and returns the integer value. Otherwise it raises an EReadError exception. 

 

EReadError 

Position 

Read 

ReadValue 

TValueType

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