fieldname property: Record class

Description

If a field name is used as a property, it accesses the field object with that name. This means the following code:

&REC.fieldname

acts the same as

&REC.GetField(FIELD.fieldname);

Note:

If the field you’re accessing has the same name as a record property (such as, Name) you can’t use this method for accessing the field. You must use the GetField method.

If you combine the fieldname property with the recname property, you obtain the specified field object associated with that record from the row.

&ROW.recname.fieldname

This property is read-only.

Example

&REC.CHARACTER.Enabled = True;