5. Communicating with TomTom Navigator from Visual Basic
NavigateToAmsterdam_Exit:
Exit Sub
NavigateToAmsterdam_Error:
MsgBox "Navigation to Amsterdam failed"
Resume NavigateToAmsterdam_Exit
End Sub
See Also: NavigateToFavorite, ShowCoordinateOnMap
5.2.9. Sub ClearFavorite( aFavorite As Long)
Command Parameters:
• aFavorite As Long: index of favorite (base zero)
Supported Since: TTN 1.42
Clears a favorite location.
See Also: SetFavorite, GetFavoriteName, GetFavoriteDescription, GetFavoriteLongitude,
GetFavoriteLatitude, NavigateToFavorite
5.2.10. Sub SetFavorite( aFavorite As Long, aName As String,
aDescription As String, aLongitude As Long, aLatitude As Long)
Command Parameters:
• aFavorite As Long: index of favorite (base zero)
• aName As String: name of favorite
• aDescription As String: description of favorite
• aLongitude As Long: longitude of favorite
• aLatitude As Long: latitude of favorite
Supported Since: TTN 1.42
Sets favorite location information.
See Also: ClearFavorite, GetFavoriteName, GetFavoriteDescription, GetFavoriteLongitude,
GetFavoriteLatitude, NavigateToFavorite
5.2.11. Function GetFavoriteName( aFavorite As Long) As String
Command Parameters:
• aFavorite As Long: index of favorite (base zero)
Returns: name of favorite
Supported Since: TTN 1.42
Returns the name of a favorite location.
See Also: ClearFavorite, GetFavoriteDescription, GetFavoriteLongitude, GetFavoriteLatitude, SetFavorite,
NavigateToFavorite
5.2.12. Function GetFavoriteDescription( aFavorite As Long) As String
Command Parameters:
• aFavorite As Long: index of favorite (base zero)
Returns: description of favorite
Supported Since: TTN 1.42
Returns the description of a favorite location.
17