Name

Hi Function

Syntax

function Hi(Value: Integer): Byte;

Description

The Hi function returns the most significant byte of a 16-bit word, ignoring any bits higher than the 16th bit. The Hi function is not a real function, but is expanded inline by the compiler.

Tips and Tricks

The Hi function is equivalent to the following function:

function Hi(Value: Integer): Byte;
begin
  Result := (Value shr 8) and $FF;
end;

See Also

Lo Function
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset