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;