Returns a reference to the global GPS object.
Read-only property
Set variable = object.GPS |
GPS Object
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
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