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.
This is a discussion on Is there a way to remove programaticaly (VB) all p.... within the MapPoint Desktop Discussion forums, part of the Map Forums category; Is there a way to remove programaticaly (VB) all pushpins in the active map. Maybe for each pushpin in ? ...
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.
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
There are currently 1 users browsing this thread. (0 members and 1 guests)