[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

## 9.147 Low

### Synopsis

    function Low (ordinal type or variable): ordinal type;

or

    function Low (array type or variable): array element type;

or

    function Low (string variable): Integer;

### Description

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.

### Conforming to

### Example

    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.

### See also

section 9.109 High

This document was generated by Frank Heckenbach on May, 10 2002 using texi2html