OnValidate Event

Applies to TestComplete 15.45, last modified on December 01, 2022
This event is obsolete. See the Remarks section below.

Declaration

OnValidate(SenderObjVParams) Parameters
Sender [in] Required Variant
Obj [in] Required A tested object
VParams [in] Required Variant

Description

Occurs when you call the Validate method of the Obj object. You can use this event to check whether the object properties are valid.

Parameters

This event has the following parameters:

Sender

The Event control that processes the event.

Obj

The object whose Validate method is called.

VParams

VParams is a value or an array of values that can be used to validate the object properties. This is the same value or array that was passed within the VParams parameter of the Validate method.

Remarks

This event is obsolete. It is supported for backward compatibility only. To validate object properties, use property checkpoints and object checkpoints.

For information on how to create an event handler for this and other TestComplete events, see Handling Events.

See Also

About Property Checkpoints
About Object Checkpoints
Validate Method
Handling Events
Event Control

Highlight search results