Skip to content

Low

Return lowest index of open array or enumerated

Declaration

Source position: system.fpd line 54

  function Low(Arg: TypeOrVariable) : TOrdinal;

Description

The return value of Low depends on it's argument:

If the argument is an ordinal type, Low returns the lowest value in the range of the given ordinal type. If the argument is an array type or an array type variable then Low returns the lowest possible value of it's index. If the argument is an open array identifier in a function or procedure, then Low returns the lowest element of the array, which is always zero. If the argument is a set type then it returns the lowest value of the underlying ordinal type.

The return type is always the same type as the type of the argument.

for an example, see High .

Errors

None.

See also

Name Description
High Return highest index of open array or enumerated
Ord Return ordinal value of an ordinal type.
Pred Return previous element for an ordinal type.
Succ Return next element of ordinal type.