The Validation event is triggered whenever a class variable is validated and the flag “Rule Check” for this variable is turned on.
Syntax scalar | |||
Function Validation(Valid, LastValid) As Void | |||
Syntax list | |||
Function Validation(Index, Valid, LastValid) As Void | |||
Parameter | |||
Name |
Type |
Passing |
Description |
Index |
Long |
ByVal |
Index of the value to be changed in the list |
Valid |
enumValid |
ByRef |
Result of the current validation, can be changed |
LastValid |
enumValid |
ByVal |
Result of the penultimate validation |
enumValid |
Description |
0 – enValid |
The object is valid |
1 – enValidWarning |
The object is valid but warns against use (reserved for later versions) |
2 – enInvalid |
The object is not valid |