[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'System' (#rtl)

Pred

Return previous element for an ordinal type.

Declaration

Source position: system.fpd line 40

function Pred(

  X: TOrdinal

):TOrdinal;

Description

Pred returns the element that precedes the element that was passed to it. If it is applied to the first value of the ordinal type, and the program was compiled with range checking on ({$R+}), then a run-time error will be generated.

for an example, see Ord

Errors

Run-time error 201 is generated when the result is out of range.

See also

Ord

  

Return ordinal value of an ordinal type.

Pred

  

Return previous element for an ordinal type.

High

  

Return highest index of open array or enumerated

Low

  

Return lowest index of open array or enumerated

The latest version of this document can be found at lazarus-ccr.sourceforge.net.