RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.Ord Function

Returns the ordinal value of an ordinal-type expression.

Pascal
procedure Ord(X);
C++
Ord( X);

System

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!