LatLonFormat Property
Sets/gets the format in which latitude and longitude data is to be returned.
Syntax
Visual Basic
object.LatLonFormat [ = value ]
Visual C++
object.GetLatLonFormat()
object.SetLatLonFormat(value)
| Part
| Description |
| object |
An object expression that evaluates to a GPS ToolKit object. |
| value |
A short integer indicating the format in which latitude and longitude data is to be returned.
|
Example
Visual Basic
'Set lat/lon format
myGPSToolKit.LatLonFormat = 2 ' deg min sec
'Get lat/lon format
Dim latLonFormat As Integer
altUnits = myGPSToolKit.LatLonFormat
Visual C++
// Set lat/lon format
_variant_t vtLatLonFormat((short)2); // deg min sec
m_myGPSToolKit.SetLatLonFormat(vtLatLonFormat);
// Get lat/lon format
vtLatLonFormat = m_myGPSToolKit.GetLatLonFormat();
short latLonFormat = (short)vtLatLonFormat;
Remarks
This property affects the format of the Latitude and
Longitude properties, as well as the latitude and longitude
data supplied by the FixUpdate event.
Valid LatLonFormat values are as follows:
| Setting
| Description |
| 0 |
dd.ddddd (Default) |
| 1 |
dd mm.mmmm |
| 2 |
dd mm ss.sss |
Default
0 (dd.ddddd)
Returns
A VARIANT (type VT_I2/short) containing the format in which latitude and longitude data is to be returned.
Errors
None
See Also
Latitude property, Longitude property, DegLabel property, MinLabel property, SecLabel property, FixUpdate event
|