From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function Ord(X: Ordinal): Byte;


Type Visibility Source Unit Parent
function public System.pas System System


Returns the ordinal value of an ordinal-type expression.

X is a Object Pascal ordinal-type expression. The result is the ordinal position of X; its type is the smallest standard integer type that can hold all values of X's type.

Ord cannot operate on Int64 values.

See Also

Code Examples