Community of VE/MapPoint Users and Developers
This is a discussion on finding a pushpin from a .dll within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi Folks, created a com-Add-In for Mappoint. When I try to find a pushpin with the following code, I get ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| finding a pushpin from a .dll created a com-Add-In for Mappoint. When I try to find a pushpin with the following code, I get no result: Set oApp = CreateObject("Mappoint.Application") Set oMap = oApp.ActiveMap Set oPushA = oMap.FindPushpin("xyz") I am sure there's a pushpin with the name xyz. How can I check if there's a result? |
| ||||
|
For a COM Add-In you need to "Get" the Map Object that is already running as opposed to Creating a new Map Object. Code: Dim objmap As MapPoint.Map Set objmap = GetObject(, "MapPoint.Application").ActiveMap Dim aPushpin As MapPoint.Pushpin
__________________ John http://www.support-pc.com Order MapPoint 2006 Here https://secure.mp2kmag.com/?refer=support-PC |
![]() |
| Tags |
| dll, finding, pushpin |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Finding USA Data | everblader | MapPoint 2006/2009 Discussion | 1 | 01-19-2005 01:41 PM |
| finding size of images | Anonymous | MapPoint 2006/2009 Discussion | 0 | 11-23-2004 09:52 PM |
| finding locations | SimonPearse | MapPoint 2006/2009 Discussion | 0 | 09-23-2004 09:56 AM |
| Finding closest 10 locations | Anonymous | MapPoint 2006/2009 Discussion | 1 | 11-19-2003 05:59 AM |
| Finding Pushpin Name by clicking on the Pushpin?(MP 2002) | NickSP | MapPoint 2006/2009 Discussion | 4 | 01-10-2003 01:11 PM |