System.Hi

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Hi(X: Integer): Byte;

Properties

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

Description

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

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.

See Also


Code Examples