[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Ord                      Returns Ordinal Value

 Ord(OVal : <ordtype>) : Integer;

    Returns the ordinal value of OVal. If OVal is an Integer (or an
    Integer-derived type), this function returns OVal; otherwise, this
    function returns the underlying integral value of OVal, which will be
    in the range 0..255.

            OVal    An ordinal value (constant, variable, function call,
                    or expression).

       <ordtype>    Any ordinal type: Integer, Char, Boolean, or
                    enumerated data type.

         Limits:    none

  -------------------------------- Example ---------------------------------

           I := Ord('A');           { I = 65 }
           I := Ord(922);           { I = 922 }
           I := Ord(False);         { I = 0 }

See Also: Chr Retype Pred Succ
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson