Longitude Property
Returns the current GPS reported longitude.
Syntax
Visual Basic
object.Longitude
Visual C++
object.GetLongitude()
| Part
| Description |
| object |
An object expression that evaluates to a GPS ToolKit object. |
Example
Visual Basic
Dim longitude As String
'Get longitude
longitude = myGPSToolKit.Longitude
Visual C++
_variant_t vtLongitude;
// Get longitude
vtLongitude = m_myGPSToolKit.GetLongitude();
_bstr_t convBSTR = (_bstr_t)vtLongitude;
CString strLongitude = (LPCSTR)convBSTR;
Remarks
Longitude is returned in the format defined in the
LatLonFormat property. Degree, minute, and second labels are defined
in the DegLabel, MinLabel, and
SecLabel properties, respectively.
Default
Empty (VT_EMPTY)
Returns
A VARIANT (type VT_BSTR/BSTR/VB String) containing the last reported longitude value.
If no longitude data is reported the variable will be empty (type VT_EMPTY).
Errors
None
See Also
Latitude property, Altitude property,
DegLabel property, MinLabel property, and
SecLabel property, FixUpdate event
|