GetFieldDefByNo method

Applies to

Description

Returns the specified Field definition, if it exists on the FormDef. Otherwise, the method returns NULL.

Syntax

[ReturnObject =] Object.GetFieldDefByNo (FieldNo)

Part

Data type

Description

Object

Object

An object expression that evaluates to an object in the Applies To list.

FieldNo

String

FieldNo must be 1 or greater. If FieldNo is larger than the number of field definitions in the form definition, NULL is returned.

Settings

Return value

Data type: FieldDef (Object). If the specified field definition exists on the FormDef, the return value is that field. If it is not found, NULL is returned.

Classic method

GetFieldDefNo