MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




I am interfacing Mappoint with VB. I am plotting ....

This is a discussion on I am interfacing Mappoint with VB. I am plotting .... within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am interfacing Mappoint with VB. I am plotting various points from a database. I want to be able to ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-10-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
I am interfacing Mappoint with VB. I am plotting various points from a database. I want to be able to delete various pushpins. The problem is that some of the pushpins had the same name(i.e. same company name, just different locations) and when I go to delete them, the program crashes because there are two with the same name. Does anyone have an idea on how to correct this without having to go through the entire database and change the names?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 06-10-2002
Senior Member
Green Belt
 
Join Date: Aug 2002
Posts: 124
If you are plotting them individually, you could check to see if a name already exists before adding a new pushpin by using the FindPushpin method. If the name is already in use, add a tiebreaker number to the name and see if that exists. If not, add the pushpin. Otherwise repeat the tiebreaker process until you find a name that hasn't been used.


Of course, you could also add a unique counter field in your database (Identity column in SQL Server) and use it as part of your name like "Microsoft (1546)" where 1546 is the value of the counter column. That would ensure uniqueness.


- Walt Cygan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 06-10-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Thanks for your help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
interfacing, mappoint, plotting


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Map Point VBA - Plotting circles Phil Holt MapPoint 2006/2009 Discussion 2 02-05-2006 06:33 AM
Plotting MapInfo data in MapPoint cableghost MapPoint 2006/2009 Discussion 2 06-09-2005 04:08 PM
Plotting Earthquake Hazard Data in MapPoint Anonymous MP2K Magazine Articles 1 09-27-2004 11:44 PM
GPS Data plotting on the Map sm176811 MapPoint 2006/2009 Discussion 2 03-08-2003 03:24 PM
I am plotting the different address in mappoint in US . PeriSen MapPoint 2006/2009 Discussion 1 09-12-2002 03:11 PM


All times are GMT -5. The time now is 09:09 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54