MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




My Pushpins !!!!!

This is a discussion on My Pushpins !!!!! within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi All, first of all thanks to everyone who has helped me out so far I am nearly there with ...


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 09-19-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
My Pushpins !!!!!

Hi All,

first of all thanks to everyone who has helped me out so far I am nearly there with this test.

BUT.....

Now I have been asked if when adding a Pushpin progmatically could it please not be added to the 'My Pushpins' set but instead be added to one of the 15 sets we have already loaded into the map. Can anybody help with this one as I can't seem to see how to change the Pushpin set name when you add the pin.

Thanks Dave.
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 09-19-2002
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
'Change ("My Pushpins") to one of your other datasets.

Dim objDataSet As MapPointCtl.DataSet
Dim objmap As MapPointCtl.Map
Set objmap = MappointControl1.ActiveMap
Set objDataSet = objmap.DataSets("My Pushpins")

Set objLoc = objmap.FindResults("Seattle, WA")(1)
Set objPushpin = objmap.AddPushpin(objLoc, "Sample")
objPushpin.MoveTo objDataSet
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
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 09-19-2002
Junior Member
White Belt
 
Join Date: Sep 2002
Posts: 7
Send a message via ICQ to Joeba Send a message via MSN to Joeba
I just add the pushpin, and then move it to another pushpinset of my own:

Set pushP = frmMain.mpControl.ActiveMap.addPushpin(objLoc)
pushP.MoveTo frmMain.mpControl.ActiveMap.DataSets.item("PP")

hope this is what you need
greetz Joeba
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 09-20-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Thanks guys,

I spotted the MoveTo about 20 mins after posting (I really must read the manuals...;-) ) and after all pins have been created then just deleted the 'My Pushpins' data set and everything is as requested by the users.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 02-13-2003
Member
Yellow Belt
 
Join Date: Dec 2002
Posts: 39
What's wrong with this one?

Dim pushP As MapPointCtl.Pushpin
Set objLoc = objMap.XYToLocation(X, Y)
Set objdataset = objMap.DataSets("Objekte")
Set pushP = objMap.AddPushpin(objLoc)
pushP.MoveTo objdataset


It won't display a pushpin in my set named "Objekte"....

Puh....


Peter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 02-13-2003
Member
Yellow Belt
 
Join Date: Dec 2002
Posts: 39
Maybe the reason why is that the dataset is an imported one?
Then: How doI transfer the imported dataset into a "normal" one?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 04-14-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Yeah, imported datasets aren't the same as regular pushpin data sets. They have more columns.

You can just create new pushpins. Use a recordset to loop through the imported dataset, and call AddPushpin on the normal set. Then delete the puspins in the imported dataset. It's a pain, but it works.
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
pushpins


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
Creating a subset of Pushpins from a set of pushpins paf33 MapPoint 2006/2009 Discussion 3 08-09-2005 05:54 AM


All times are GMT -5. The time now is 04:59 AM.


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