Top |
Post New Question |
Read All |
MP2K Asks Microsoft
732
vic
-
June 17, 2002
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.
Answer:
June 18, 2002
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
Post New Answer / Follow-up