MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




addPushpin

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 ...


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 01-27-2004
Junior Member
Yellow Belt
 
Join Date: Jan 2004
Posts: 16
addPushpin

Hello everyone.

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.
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 01-27-2004
Junior Member
Yellow Belt
 
Join Date: Jan 2004
Posts: 16
It seemed as if the two different MapPoint objects somehow interfered with each other, I changed the code and only use one of them and it worked.

- Niklas
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
addpushpin


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
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


All times are GMT -5. The time now is 06:43 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