[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
function Low (ordinal type or variable): ordinal type; |
function Low (array type or variable): array element type; |
function Low (string variable): Integer; |
For ordinal types or variables of that type, `Low' returns the lowest value a variable of that type can assume.
For array types or variables of that type, `Low' returns the lowest index a variable of that type can assume. Note: the result is of the same type as the array index is. If the array has more than one dimension, `Low' returns the lowest index in the first dimension.
If the argument is a string variable, `Low' returns one.
program LowDemo; type Colors = (Red, Green, Blue); var Col: array [12 .. 20] of Colors; Foo: 12 .. 20; Bar: Integer; begin Foo := Low (Col); { returns 12 } Col[Foo] := Low (Col[Foo]); { returns Red } Bar := Low (Integer) { returns lowest ``Integer'' value } end. |
section 9.109 High