Validate method

Applies to

Description

Validates the field using FORMS’ internal validation routines. All the validation routines set up for the field are checked (format, checksum, etc.), but no other events are fired. Returns 0 if successful, non-zero if not.

Syntax

[ReturnValue =] Object.Validate ( Status, ExtStatus )

Part

Data type

Description

Object

Object

An object expression that evaluates to one of these objects.

Status

Integer (ByRef)

 

ExtStatus

Integer (ByRef)

 

Settings

Return value

Data type: Integer – returns 0 if validation was performed ok, otherwise – 1. See Event return value constants.

Remarks

The return value can be used to see if the validation failed for some reason. If the return value is 0 (OK), then the current field’s new Status and ExtStatus are returned in the corresponding parameters.

Classic method

Validate