GetFieldByNo method

Applies to  

Description

Returns the specified Field, if the field named exists on the FormDef. Otherwise, the method returns NULL.

Syntax

[Returnobject =] Object.GetFieldByNo ( 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: Field (Object). If the specified field exists on the FormDef, the return value is that field. If it is not found, NULL is returned.

Remarks

This method creates the specified field if it exists on the corresponding FormDef but is not filled in on the current Form. If you do not want to create "empty" fields, use the ExistFieldByNo method, instead.

Classic method

GetFormFieldNo