i have two questions: i am using mappoint 2001 an....

Anonymous
06-03-2002, 01:01 PM
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.

Walt Cygan
06-03-2002, 01:01 PM
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 (http://www.mp2kmag.com/author.asp?id=9)

 
Web mp2kmag.com
mapforums.com