From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function Hi(X: Integer): Byte;


Type Visibility Source Unit Parent
function public System.pas System System


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

In Object Pascal 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.

See Also

Code Examples