Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MapPoint - how to clear the map?
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
MapPoint - how to clear the map?
Miscellaneous
Thread ID:
00941833
Message ID:
00941833
Views:
57
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.
Cyrus Nima
-------------------
cyrusnima@gmail.com
Next
Reply
Map
View

Click here to load this message in the networking platform