It's done in VB here:
http://www.mp2kmag.com/a46--find.from.radius.mappoint.htmlmfrmMap.cmbPushpin.Clear
>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.
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"