[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Return low byte/word of value.
Source position: line 0
function lo( |
B: Byte |
):Byte; |
i: Integer |
):Byte; |
w: Word |
):Byte; |
l: LongInt |
):Word; |
l: DWord |
):Word; |
i: Int64 |
):DWord; |
q: QWord |
):DWord; |
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.
None.
|
Return ordinal value of an ordinal type. |
|
|
Convert byte value to character value |
|
|
Return high byte/word of value. |
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.
lazarus-ccr.sourceforge.net |