Editar

RecordRef.Field(Text) Method

Version: Available or changed with runtime version 16.0.

Gets a FieldRef for the field that has the name FieldName in the table that is currently selected. If no field has this name, the method returns an error.

Syntax

Field :=   RecordRef.Field(FieldName: Text)

Parameters

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

FieldName
 Type: Text
The name that the field has in the table that is currently selected. This is the field for which you want the FieldRef.

Return Value

Field
 Type: FieldRef
A new FieldRef of the record

See Also

RecordRef data type
Getting started with AL
Developing extensions