next up previous contents index
Next: LongJmp Up: Functions and Procedures Previous: Ln

Lo

   

Declaration:

Function Lo (O : Word or Longint) : Byte or Word;

Description:

Lo returns the low byte of its argument if this is of type Integer or Word. It returns the low word of its argument if this is of type Longint or Cardinal.

Errors:

None.

See also:

Ord, Chr

Example
Program Example38;

{ Program to demonstrate the Lo function. }

Var L : Longint;
    W : Word;

begin
  L:=(1 Shl 16) + (1 Shl 4);  { $10010 }
  Writeln (Lo(L));            { Prints 16 }
  W:=(1 Shl 8) + (1 Shl 4);   { $110   } 
  Writeln (Lo(W));            { Prints 16 }
end.



Michael Van Canneyt
Thu Sep 10 14:02:43 CEST 1998