Sets a result value to be passed back from the event handling routine.
Read-write property
object.Result = [ value ] |
Set Result to False in an OnValidate routine to stop validation of the control. For example, the following routine may be called when the OnValidate event occurs for an Edit control:
Sub Validation
'Value must be positive
If ThisEvent.Object.Value ‹=0 Then
ThisEvent.Result = False
ThisEvent.MessageText = "Please enter a positive value"
ThisEvent.MessageType = 48
End If
End Sub
Sub Validation
'Value must be positive
If ThisEvent.Object.Value ‹=0 Then
ThisEvent.Result = False
ThisEvent.MessageText = "Please enter a positive value"
ThisEvent.MessageType = 48
End If
End Sub