RouteName Property
Gets the name of the current route.
Syntax
Visual Basic
object.RouteName
Visual C++
object.GetRouteName()
| Part
| Description |
| object |
An object expression that evaluates to a GPS ToolKit object. |
Example
Visual Basic
'Get route name
Dim routeName As String
routeName = myGPSToolKit.RouteName
Visual C++
_variant_t vtRouteName;
// Get route name
vtRouteName = m_myGPSToolKit.GetRouteName();
_bstr_t convBSTR = (_bstr_t)vtRouteName;
CString strRouteName = (LPCSTR)convBSTR;
Remarks
None
Default
Empty (VT_EMPTY)
Returns
A VARIANT (type VT_BSTR/BSTR/VB String) containing the name of the
currently selected route. If no route is selected, this variable is empty.
Errors
None
See Also
OrigWptID property, DestWpID property,
WptsInRoute property, GetWptLocation method, NavUpdate event
|