Topic Path: Symbol Reference > Functions > WordToTwoBytes Function
ContentsIndexHome
PreviousUpNext
WordToTwoBytes Function

Converts a Word value and stores the two byte values in a ByteArray.

File
procedure WordToTwoBytes(
    AWord: Word; 
    ByteArray: TIdBytes; 
    Index: integer
);
Parameters 
Description 
AWord 
Ordinal data type to convert and store in an array of bytes.
 
ByteArray 
array if bytes to store the converted value.
 
Index 
Offset into the byte array where the converted value will be stored. 

WordToTwoBytes is a procedure used to convert a Word value and store the resulting two byte values in the array of bytes specified in ByteArray. 

Index specifies the zero-based offset into the array of bytes in ByteArray where the converted data tyoe will be stored.

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