MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




newbie needs sample VB6 code to insert pins from post codes

This is a discussion on newbie needs sample VB6 code to insert pins from post codes within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I bougt MapPoint 2004 when it came out and we have used it manually ever since. Now we need ...


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 (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 05-30-2008
VB Developer
White Belt
 
Join Date: May 2008
Location: Scotland (the brave)
Posts: 2
newbie needs sample VB6 code to insert pins from post codes

Hi,

I bougt MapPoint 2004 when it came out and we have used it manually ever since.



Now we need to write a program to use it, a new adventure dawns....... and I am all at sea with teh placing of pins.

I am hoping that one of you kind souls will post some sample code that shows me how to stick a pin on the map at a post code (UK Zip Codes) and I can do the rest from there.

I have the map on screen in my VB6 form, and I can make pins appear from a lat & Long but I need to run through a recordset, placing coloured pins depending on the type of location and I can't see how to insert a pin at apost code.

Thanks is advance,

Microman
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 05-30-2008
VB Developer
White Belt
 
Join Date: May 2008
Location: Scotland (the brave)
Posts: 2
Solution to pin insertion code for VB6

I found a sample in the programming section, but just in case anyone else needs a pointer, this is how I resolved it.

Now I just need different pins for different types of premises etc etc.


Set evdb = OpenDatabase("C:\ops97.mdb")
Set evrs = evdb.OpenRecordset("ops")
Set objMap = mpc.NewMap(geoMapEurope)
objLoc.GoTo
mpc.ActiveMap.Altitude = 300
On Error Resume Next 'this is to jump unknown post codes
Do Until evrs.EOF
Set objPin = objMap.AddPushpin(objMap.FindResults(evrs("pcode") )(1))
evrs.MoveNext
DoEvents
Loop
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
access, code, codes, insert, mdb, newbie, pins, post, post codes, recordset, sample, vb6


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/newbie-needs-sample-vb6-code-insert-pins-post-codes-7737.html

Posted By For Type Date
MapPoint 2000 Gallery - MP2K Magazine This thread Refback 06-03-2008 09:12 PM

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
list of post codes arround a city. sf_bbl MapPoint 2006/2009 Discussion 3 03-10-2008 11:37 AM
Distance between post codes nick72blue MapPoint 2006/2009 Discussion 5 02-29-2008 11:48 AM
Post codes with lat.-lon.-Data in Access markus_figge MapPoint 2006/2009 Discussion 2 11-20-2006 10:36 AM
BA post codes UK Anonymous MapPoint 2006/2009 Discussion 2 01-30-2004 01:12 PM
UK District Post codes Anonymous MapPoint 2006/2009 Discussion 1 01-24-2003 11:23 PM


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