Modifier

Partager via


FieldRef.GetEnumValueOrdinal(Integer) Method

Version: Available or changed with runtime version 4.0.

Gets the Enum value (or Option member) ordinal value from the Enum metadata for the field that is currently selected.

Syntax

The Enum value ordinal value :=   FieldRef.GetEnumValueOrdinal(Index: Integer)

Parameters

FieldRef
 Type: FieldRef
An instance of the FieldRef data type.

Index
 Type: Integer
The index in the list of Enum ordinal values to get the Enum value (or Option member) ordinal value for. The index is 1-based.

Return Value

The Enum value ordinal value
 Type: Integer
The ordinal value.

FieldRef Data Type
Get Started with AL
Developing Extensions