Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on Confused with calcpos :s within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I'm using the following to call calcpos to try and grab the long and lat of an address Code: Private ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Confused with calcpos :s Code: Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim objmap As MapPoint.Map
Dim objLoc As MapPoint.Location
Dim lat, lon As Double
objmap = AxMappointControl1.ActiveMap
objLoc = objmap.FindAddressResults("Moss Lane", "Bolton", "", "", "BL1", "England")
CalcPos(objmap, objLoc, lat, lon)
End Sub
Cheers M |
| |||
|
Aha!!! M |
| |||
|
Its definitly finding the correct long and lat, at the moment i've adjusted it so that in the sub its writing the values to 2 labels. However, the 2 labels that are updated in the button function that calls the calcpos sub are updated as 0. Saying that at the moment its working even though its a dirty solution, I'd just like to figure out why its not returning teh values really. In vb6 there'd usually be a return dbllat, dbllon to do it, but return can't be used within a sub in vb.net apparently :s M |
![]() |
| Tags |
| calcpos, confused |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Spatial Data Import Confused by some .shp files | tymitton | MapPoint 2006/2009 Discussion | 5 | 10-21-2008 11:41 PM |
| Some concerns about calcpos sub | lucci56 | MapPoint 2006/2009 Discussion | 5 | 07-18-2006 10:44 AM |
| Problems using CalcPos | Pete_ADL | MapPoint 2006/2009 Discussion | 4 | 06-21-2006 03:12 PM |
| Use CalcPos on a map with EXISTING pushpins ?? | Sonicman_ | MapPoint 2006/2009 Discussion | 5 | 02-20-2006 04:05 PM |
| I am confused | Anonymous | MapPoint 2006/2009 Discussion | 1 | 01-28-2004 12:45 AM |
Lanzarote Holiday
Enjoy a Lanzarote holiday when you check out the offers on UlookUbook and save cash!