ExistFieldDefByName method

Applies to  

Description

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

Otherwise, the method returns FALSE and FieldDefObject is NULL.

Syntax

[ReturnValue =] Object.ExistFieldDefByName (Name,Index,FieldDefObject)

Part

Data type

Description

Object

Object

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

Name

String

Specify the name of the field definition you are looking for.

Index

Integer

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

FieldDefObject

FieldDef (Object, ByRef)

The found Field definition or NULL if not found.

Settings

Return value

Data type: Boolean – TRUE if field definition is found, otherwise FALSE (see description above).

Remarks

Field definition names are case-sensitive in FORMS.

Classic methods

None.