Community of VE/MapPoint Users and Developers
This is a discussion on error 4014 within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I'm using MP2004 and VB5 In code I have created a pushpin, and later want to delete it using If ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| error 4014 In code I have created a pushpin, and later want to delete it using If PinIsSet(Index) Then objCPushPin(Index).Delete Ths sometimes causes error 4014. I have been unable to find any documentation on this error, can anyone advise? |
| |||
|
Hi, I cannot find the error eather, but probably you try to delete a pushpin that is not assigned ? To be sure it is assigned always do if you delete a pushpin and you have it in an array or whatever assign null to it (I think Nothing in VB). Or find the pushpin by name (if you give a name to it at creation time). Code: PushPin PP = MP.ActiveMap.FindPushpin("TheName");
if (PP != null)
PP.Delete();
Code: if (aPP[4] != null) {
aPP[4].Delete();
aPP[4] = null;
}
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| ||||
|
I would upgrade to VB6 - you never know there might be a problem in VB5's handling of COM objects? Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools See the Geoweb Guru for online mapping |
| |||
|
thanks for the suggestins, I do keep track of pins that have been created using an array PinIsSet so... if PinIsSet(index) then .... I dont want to go to vb6 if I can avoid it, I'm writing commercial software in licenced 5Pro, 6.0 is no longer availabe, and so far I have not seen any need to go to .net.... perhaps this is turning into that need, but I'd like to be certain before spending loads on new VB! |
![]() |
| Tags |
| 4014, error |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| synchronous error | Wilfried | MapPoint 2006/2009 Discussion | 4 | 06-09-2005 05:27 AM |
| Mappoint Error | Mudrover | MapPoint 2006/2009 Discussion | 5 | 01-20-2005 03:59 PM |
| About ERROR 4-40028-1. Error or Bug ? | Anonymous | MapPoint 2006/2009 Discussion | 12 | 01-11-2005 10:32 AM |
| I get this following error | ananthdeena | MapPoint 2006/2009 Discussion | 3 | 01-01-2005 03:46 AM |
| Runtime Error 462 | Anonymous | MapPoint 2006/2009 Discussion | 0 | 09-02-2004 05:07 AM |