Is there a way to remove programaticaly (VB) all p....

Anonymous
06-17-2002, 10:51 PM
Is there a way to remove programaticaly (VB) all pushpins in the active map.

Maybe for each pushpin in ? (do not now what collection!)
pushpin.delete
next pushpin

Any sample vb code would be appreciated.

Walt Cygan
06-17-2002, 10:51 PM
Delete all of the datasets (using the ActiveX control):


Dim objDataSet As MapPoint.DataSet

Dim objMap As MapPoint.Map


Set objMap = ctlMapPoint.ActiveMap

For Each objDataSet In objMap.DataSets

objDataSet.Delete

Next


- Walt Cygan (http://www.mp2kmag.com/author.asp?id=9)

 
Web mp2kmag.com
mapforums.com