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

Glossary Item Box

Description

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

Property type

Read-write property

Syntax

object.Result = [ value ]

Remarks

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

© 2012 All Rights Reserved.