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

Glossary Item Box

Description

Returns the current value of the specified GPS property.

Property type

Read-only property

Syntax

variable = object.Properties ( Name )

Parameters

Property

Return Type

Variant

Remarks

The Properties property returns the current value of the specified GPS property. All properties are read-only at this time. The following properties are supported for the Name argument:

Name Description Return Type
"EPE" Estimated position error of the GPS (for Garmin® GPS receivers only). Double
"HDOP" Horizontal dilution of precision of the GPS. Double
"HPE" Horizontal position error of the GPS (for Garmin® GPS receivers only). Double
"PDOP" Position dilution of precision of the GPS. Double
"TDOP" Time dilution of precision of the GPS. Double
"VDOP" Vertical dilution of precision of the GPS. Double
"VPE" Vertical position error of the GPS (for Garmin® GPS receivers only). Double
"UTC" UTC date and time. Date
"COG" True course over ground (in decimal degrees). Double
"SOG" Speed over ground (in km/h). Double
"MAG_VAR" Magnetic variation (in degrees). Double
"SATS_USED" Number of satellites used for the current position. Long
"QUALITY" GPS fix quality Long
"DIFF_AGE" Age of the current differential signal (in seconds) Long
"DIFF_ID" ID of the DGPS station used. Long
"DEPTH" Depth (in meters). Double
"WATERTEMP" Water temperature (in degrees celcius). Double

The usage of the return value is dependent upon its type. For example, the UTC property returns a Date type. If you need the time portion only, you would write code like this:

       dtUTCTime = FormatDateTime(GPS.Properties ("UTC"), vbLongTime)
  

The Properties property is the default property for the GPS object. Therefore, the following two lines of code will yield the same result:

       dblPDOP = GPS.Properties ("PDOP")
       dblPDOP = GPS ("PDOP")
  

See Also

© 2013 All Rights Reserved.