System.Ord

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Ord(X: Ordinal): Byte;

Properties

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

Description

Returns the ordinal value of an ordinal-type expression.

X is a Delphi 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