RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.Lo Function

Returns the low order Byte of argument X.

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

In Delphi code, Lo returns the low-order Byte of the argument X as an unsigned value. X is an expression of type Integer.  

Delphi Examples: 

 

{
This example demonstrate use of the System Lo function to
store the low byte of a word or integer into a byte.
}
procedure TForm1.Button1Click(Sender: TObject);
var
  B : Byte;
begin
  B := Lo($1234);
  ShowMessage(Format('Low byte of $1234 = $%x', [B]));
end;

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!