Returns the specified Field, if the field named exists on the FormDef. Otherwise, the method returns NULL.
[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. |
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.
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.