I could really use some help on this one.
How can I clear all the previous LOCATIONS and Pushpins on the map ? I need to clear the map for each trip, but they just keep accumlating until I release the Application object all together.
According to the documentation, I think I should create the Dataset object, and then try to do Dataset.delete. But I can not create the right Dataset object. I have created the following objects:
goMapApp = createobject("MapPoint.Application")
goMap = goMapApp.ActiveMap
goRoute = goMap.ActiveRoute
goRoute.Clear() && this Gets rid of any existing waypoints.
goDataSets = goMapapp.ActiveMap.DataSets
Thanks in advance.