RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.Hi Function

Returns the high-order byte of X as an unsigned value.

Pascal
function Hi(X): Byte;
C++
Byte Hi( X);

System

In Delphi code, use Hi to obtain the high-order byte of an expression of type Word or Integer.

Note: Hi treats Integer as a 16-bit value, even if it is 32-bit.
 

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