GetField method: RecordDefn class

Syntax

GetField({n | field_name})

Description

Use this method to obtain the record field definition of the specified field.

Parameters

Parameter Description

n | field_name

Specifies the field to be retrieved. This method takes the type as Any.

The PeopleCode program is terminated if the specified field number does not exist on the record.

Returns

A record field definition object for the specified field.

Returns a null value if the specified field does not exist on the record.

Example

Local RecordFieldDefn &recField = &myNewRecord.GetField("MYNEWFIELD");