Internet Direct (Indy)
Home
PreviousUpNext
TwoByteToWord Function

Converts two byte values to their Word representation.

Pascal
function TwoByteToWord(
    AByte1: Byte; 
    AByte2: Byte
): Word;
Parameters 
Description 
AByte1 
Value to convert to the high-order byte for the data type.
 
AByte2 
Value to convert to the low-order byte for the data type. 

Word - Unsigned value for the converted data type.

TwoByteToWord is a Word function used to convert two byte values specified in AByte1 and AByte2 to their representation as a Word value. 

AByte1 contains the unsigned integer that will become the high-order byte for the Word value. 

AByte2 contains the unsigned integer that will become the low-order byte for the Word value. 

TwoByteToWord uses a TIdBytes value to prepare the converted data type, and calls BytesToWord to determine the return value for the function.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.