-
Declaration:
- Function High (Type identifier or variable reference) : Ordinal;
-
Description:
- The return value of High depends on it’s argument:
- If the argument is an ordinal type, High returns the highest value in the range of the
given ordinal type.
- If the argument is an array type or an array type variable then High returns the highest
possible value of it’s index.
- If the argument is an open array identifier in a function or procedure, then High returns
the highest index of the array, as if the array has a zero-based index.
The return type is always the same type as the type of the argument (This can lead to some nasty
surprises !).
-
Errors:
- None.
-
See also:
- Low (531), Ord (542), Pred (548), Succ (583)
Listing: refex/ex80.pp