Community of VE/MapPoint Users and Developers
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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| newbie needs sample VB6 code to insert pins from post codes 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 |
| |||
| 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 |
![]() |
| Tags |
| access, code, codes, insert, mdb, newbie, pins, post, post codes, recordset, sample, vb6 |
| ||||
| 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 | |
| |
| ||||
| 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 |