Top |
Post New Question |
Read All |
MP2K Asks Microsoft
702
Dave
-
June 3, 2002
i have two questions:
i am using mappoint 2001 and VB. i am trying to insert pushpins based on a database i am running off of. am i able to plot the pushpins based only on city and state information, or must i have a complete address? my second question is that once i get these pushpins placed, how do i delete them in VB? i want to clear the map of all pushpins and start all over by plotting a different set of data. thanks for anyone who can help.
Answer:
June 4, 2002
First, I would upgrade to the newest version of MapPoint as soon as possible. I'm not sure when MapPoint 2003 is coming out, but get it. Each version I have used has really improved the object model and what you can do through code.
With that said, you can certainly search with only city and state. A pushpin added that way should appear at the geographic center of the city.
In VB, use the Delete method to remove a pushpin: "objPushpin.Delete". See VB help for syntax examples. To clear all pushpins more quickly, use the Delete method on all datasets in the map.
- Walt Cygan
Post New Answer / Follow-up