ExistFieldByName method

Applies to  

Description

Returns TRUE if the field named exists on the form, and in that case the FieldObject contains the field.

Otherwise, the method returns false and FieldObject is NULL.

Syntax

[ReturnValue =] Object.ExistFieldByName (FieldName, Index, FieldObject)

Part

Data type

Description

Object

Object

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

FieldName

String

Specify the name of the field you are looking for.

Index

Integer

If the field is indexed, the index (>= 1) must be specified as well. Use 0 for non indexed fields.

FieldObject

Field (Object, ByRef)

The found Field or NULL if not found.

Settings

Return value

Data type: Boolean – TRUE if field is found, otherwise FALSE.

Remarks

Only fields filled in on the current form are returned. No fields are created.

Field names are case-sensitive in FORMS.

Classic method

FormFieldNameExist