DataControl.Validate

From Xojo Documentation

Event


DataControl.Validate(Action as Integer) As Boolean

Supported for all project types and targets.

Occurs when you have modified the current record via data aware TextFields. Returning False (the default) updates the record with your changes.

Returning True prevents the update from happening. Action specifies what kind of action is being performed. It can be one of the following values:

Value Class Constant Action
0 kInsert AddNew
1 kUpdate Update
2 kDelete Delete