qp.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Ordinal Types
  Simple Types Contents Index                               Back
 
  Description
 
    Ordinal types are ordered sets of values. They have a beginning
    and an end. Except for the first and the last values, each value
    has a predecessor and a successor.
 
    Use the Pred function to return the predecessor of any value other
    than the first value. Use the Succ function to return the successor
    of any value other than the last value.
 
    The value of any member of an ordinal type is the number of its
    relative position within the ordered values.
 
    Use the Ord function to return the order of a specified value
    within the ordered values. An ordinal type falls into one of
    the following categories:
 
      Predefined Ordinal Types
      ════════════════════════
      Boolean
      Char
      Integer
 
      User-defined Ordinal Types
      ══════════════════════════
      Enumerated
      Subrange
 
    Choose any type for help.