Community of VE/MapPoint Users and Developers
This is a discussion on lat lon from uk postcode within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi I am trying to get the lat lon from a given postcode using the following routine in VB6 Private ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
|
your problem might be that "maplat, maplon" need to be declared as Double for the calcpos sub.
__________________ John http://www.support-pc.com Order MapPoint 2006 Here https://secure.mp2kmag.com/?refer=support-PC |
| ||||
| ok, done it, this is how
Private Sub mapBtn_Click() Dim objApp As New MapPoint.Application Dim objMap As MapPoint.Map Dim objLoc As MapPoint.Location Set objMap = objApp.ActiveMap objApp.Visible = False objApp.UserControl = True On Error GoTo er If Len(Postcode_txt) = 0 Then Exit Sub 'Find an address Set objLoc = objMap.FindAddressResults(, , , , Postcode_txt.Text, geoCountryUnitedKingdom)(1) CalcPos objMap, objLoc, maplat, maplon Exit Sub er: MsgBox Str(Err) + SP + Err.Description End Sub cool ehh!! |
![]() |
| Tags |
| lat, lon, postcode |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| need help in entering quaintly against postcode | tony jones | MapPoint 2006/2009 Discussion | 3 | 08-04-2004 07:37 AM |
| Full UK Postcode | Anonymous | MapPoint 2006/2009 Discussion | 2 | 03-15-2004 10:46 AM |
| POSTCODE | gsc1ugs | MapPoint 2006/2009 Discussion | 0 | 02-06-2003 09:20 AM |
| Postcode Formatting.. | David | MapPoint 2006/2009 Discussion | 0 | 08-30-2002 06:33 AM |
| UK postcode mapping problems | Robin | MapPoint 2006/2009 Discussion | 1 | 08-08-2002 08:09 AM |