RAD Studio VCL Reference
TReader.ReadInteger Method

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

function ReadInteger: Longint;
__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. 


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