Community of VE/MapPoint Users and Developers
This is a discussion on addPushpin within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hello everyone. In my application I have declared Private MapPointApp As MapPoint.Application Private objFindResults As MapPoint.FindResults Also I have an ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| addPushpin In my application I have declared Private MapPointApp As MapPoint.Application Private objFindResults As MapPoint.FindResults Also I have an instance of the MapPointControl called objMapPointControl. In the Form.Load event: Set MapPointApp = New MapPoint.Application objMappointControl.NewMap (geoMapEurope) The map shows as planned in the control. Then I perform an address search and stores the result in a global: Set objFindResults = MapPointApp.ActiveMap.FindResults(strAddress) Later I want to add a pushpin to the map and I use: Dim i As Integer Dim objLocation As MapPoint.Location Dim objPushpin As MapPoint.Pushpin Dim objMap As MappointCtl.Map Set objMap = objMappointControl.ActiveMap i = 1 Set objLocation = objFindResults(i) Set objPushpin = objMap.AddPushpin(objLocation) And on this row, the error "Method AddPushPin of object '_Map' failed" occurs. Can anyone see what the problem might be? - Niklas I am using MP2004 and VB6. |
![]() |
| Tags |
| addpushpin |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| addpushpin - need help to get started | BWard | MapPoint 2006/2009 Discussion | 7 | 12-19-2005 03:15 PM |
| addpushpin problem | Anonymous | MapPoint 2006/2009 Discussion | 9 | 09-28-2004 10:12 AM |
| AddPushPin | Anonymous | MapPoint 2006/2009 Discussion | 0 | 03-01-2004 11:41 AM |
| AddPushpin with more data than Loc and name possible? | Anonymous | MapPoint 2006/2009 Discussion | 5 | 03-17-2003 07:11 PM |
| AddPushpin | Monique | MapPoint 2006/2009 Discussion | 3 | 08-20-2002 02:26 AM |