Topic Path: Symbol Reference > Classes > TIdIOHandler Class > TIdIOHandler Methods > ReadInteger Method
TIdIOHandler.ReadInteger Method

Reads the data type from the IOHandler connection.

function ReadInteger(
    AConvert: Boolean = True
): Integer;
Indicates the order of bytes for the ordinal data type must be converted. 

Integer - Data type read from the the IOHandler connection.

ReadInteger is an Integer function used to read the ordinal data type from the data source for the IOHandler connection. ReadInteger calls ReadBytes to perform the read request, and calls BytesToInteger to convert the byte values to the ordinal data type. 

AConvert indicates that the byte order in the return value should be converted from the Network byte order to the host-specific byte order required for the data type. GStack is used to access the TIdStack.NetworkToHost method for the byte order conversion. 

Use other methods to get a specific data type from the IOHandler connection, including: 


Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.