FieldRef.GetEnumValueCaption(Integer) Method

Version: Available or changed with runtime version 7.0.

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

Syntax

The Enum value caption :=   FieldRef.GetEnumValueCaption(Index: Integer)

Parameters

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

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

Return Value

The Enum value caption
 Type: Text
The Enum value caption.

See Also

FieldRef Data Type
Get Started with AL
Developing Extensions