ValidationMessage Event

Applies to TestComplete 15.63, last modified on April 10, 2024

Occurs when TestComplete needs to know the last validation error that has occurred.

Declaration

ValidationMessage(Data) Parameters
Data [in] Required Object
Result     String  

Description

Each time the Validate event handler returns False, the ValidationMessage event is raised. The event handler should return the description of the last validation error that has occurred in the Validate routine.

Parameters

The event has the following parameter:

Data

An object that provides access to the operation fields. This object contains properties that correspond to individual operation fields and whose names coincide with the field names.

Return Value

A string holding the description of the last validation error that has occurred.

See Also

Events Reference
StartEditing Event
GetEditValue Event
SetEditValue Event
HasChanges Event
Validate Event
ApplyChanges Event
Creating Keyword Test Operations

Highlight search results