MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Pushpin Names

This is a discussion on Pushpin Names within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Im trying to populate a listbox with the pushpin names, but it's not working out. Has anyone tried this before? ...


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-2005
Junior Member
Yellow Belt
 
Join Date: Jan 2005
Posts: 13
Pushpin Names

Im trying to populate a listbox with the pushpin names, but it's not working out. Has anyone tried this before? Any tips?
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-28-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Hi,

Can you please be more specific on about what the problem is ?
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 01-28-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Populate list box with pushpin names

Here's what I did in VBA (Access):

Set List = Me![Cardinal]
List.RowSourceType = "Value List"
Set rstListBox = objMap.DataSets.Item("Cardinal Directions").QueryAllRecords
While Not rstListBox.EOF
strList = strList & """" & rstListBox.Pushpin.Name & """" & ";"
MsgBox "strList is " & strList
rstListBox.MoveNext
Wend
intLength = Len(strList)
List.RowSource = strList
List.Requery

The QueryAllRecords gets the info from the pushpin set. I'm using Access 2000, so I couldn't use AddItem to add the pushpin names to the list box, so I concatenated them into a value list instead. Hope this helps.
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 01-31-2005
Junior Member
Yellow Belt
 
Join Date: Jan 2005
Posts: 13
Thanks Alexa, most if it makes sence, but I must be completely stupid, query's and I don't get along.

Is there a VB6 article or write-up of this somewhere? I'm pulling my hair out over this simple little thing.
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 01-31-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Hi,

Can you please tell what the problem is ? I think many people will help but I can not figure out what the problem is.
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 01-31-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Hey Wilfried,

Unfortunately the workstation that has mappoint on it is at a different location and doesn't have web access, so next time I'll write down my problems exactly, sorry.

But after reading this post...
http://www.mp2kmag.com/mappoint/disc...hlight=listbox

I think my problem is that I didn't understand DataSets, I think I do now. I need to query each of my pinsets separately. I'll take this post to the other location and try again. It'd be nice if there was a library of simple sample code like this for newbie's to learn from.
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 02-01-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Hi,

Reading the document (the URL you posted) made me more clear what your problem was. Problem is I'm not (and many people here) english spoken. If I translate for example you original question then I read: "how to fill a listbox with names?". See? that's the difficult one

good luck !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 02-01-2005
Junior Member
Yellow Belt
 
Join Date: Jan 2005
Posts: 13
Wilfried,

English is my first language and I mess it up all the time.

It is that simple. Just as you said:

Quote:
"how to fill a listbox with (pushpin)names?".
I'm over thinking it and making it more difficult then it needs to be. Tomorrow I'll bring some of the code I have so far, but I just assume delete it, because I think its completely wrong and guiding me in the wrong direction.

Sorry for being so difficult.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 02-01-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Hi,

No youre not difficult. It is a question of language barrier. Please post your code but more important is "what you wants to do" so that it is understandable for people that only know "simple" english like me

My primary language is object pascal, after it it is C, Asm, Clipper, then Flemish, Duch, English, German, ...

If you wants to fill a listbox with all your pushpin names, then just add the names to the listbox at the moment you create you pushpins. Whas this your question ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10 (permalink)  
Old 02-01-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
My VB6 application loads a map into the mappoint control. The map that it loads, has a lot of pushpins already added to it. I want my VB6 app to place the pushpin names in a listbox, so that when the users clicks a pushpin name the map goes to that location.

I have 3 different sets of pushpins, about 80 pushpins in each set. I'm trying to get each set in their own listbox.

I'm really new, so thank you for you patience.
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
names, pushpin


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
Street Names etc... Milo MapPoint 2006/2009 Discussion 1 04-27-2005 03:16 PM
Show All Names in Set Anonymous MapPoint 2006/2009 Discussion 1 12-11-2003 10:28 AM
street names Anonymous MapPoint 2006/2009 Discussion 0 06-04-2003 07:49 AM
Is there a way of getting rid of all the names of .... Anonymous MapPoint 2006/2009 Discussion 1 07-24-2001 03:10 AM
Also, can I delete the state names and city names .... Anonymous MapPoint 2006/2009 Discussion 1 08-29-2000 01:57 PM


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