ArcPad Scripting Object Model
GPS Property
See Also  Send comments on this topic.
Application Object : GPS Property

Glossary Item Box

Description

Returns a reference to the global GPS object.

Property type

Read-only property

Syntax

Set variable = object.GPS

Return Type

GPS Object

Remarks

The GPS object is exposed globally. That means you can directly access the properties and methods of the GPS object from any routine without first obtaining a reference to that object. For example, the following VBScript code determines if the GPS port is open:


Sub IsGPSOpen
   Dim objTheGPS, blnOpen
   Set objTheGPS = Application.GPS
   blnOpen = objTheGPS.IsOpen
End Sub
Since the GPS object is global, the above example can be shortened to the following example:


Sub IsGPSOpen
   Dim blnOpen
   blnOpen = GPS.IsOpen
End Sub

See Also

© 2012 All Rights Reserved.