ArcPad Scripting Object Model
Result Property
See Also  Send comments on this topic.
ThisEvent Object : Result Property

Glossary Item Box


Sets a result value to be passed back from the event handling routine.

Property type

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

See Also

© 2013 All Rights Reserved.