Community of VE/MapPoint Users and Developers
This is a discussion on Location. StreetAddress is nothing within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am having trouble getting the StreetAddress from a waypoint.location. I am using the MapPoint control on a windows form ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Location. StreetAddress is nothing I am using the MapPoint control on a windows form in VB.Net In the debugger, I put a watch on objWayPoint and it is fine and so is objWayPoint.Location, but objWayPoint.Location.StreetAddress is nothing. I created the waypoint with objFindResults = objMap.FindAddressResults(sStreetAddress, sCity, , sState, , GeoCountry.geoCountryUnitedStates) objLocation = objFindResults.Item(1) objWayPoint = mpcMap.ActiveMap.ActiveRoute.Waypoints.Add(objLoca tion, sName) Here is where I am trying to get the streetAddress Dim objMap As MapPoint.Map Dim objWayPoints As MapPoint.Waypoints Dim objWayPoint As MapPoint.Waypoint objMap = mpcMap.ActiveMap objWayPoints = objMap.ActiveRoute.Waypoints() objWayPoint = objWayPoints(1) If objWayPoint.Location.StreetAddress Is Nothing Then Debug.WriteLine("Waypoint.Location.StreetAddress is nothing") Else Debug.WriteLine(objWayPoint.Location.StreetAddress .City) End If Thanks |
![]() |
| Tags |
| location, streetaddress |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Remote procedure call failed: Location. StreetAddress | Vinay | MapPoint 2006/2009 Discussion | 3 | 02-16-2006 02:34 PM |
| oLoc.StreetAddress.Country | Anonymous | MapPoint 2006/2009 Discussion | 0 | 02-11-2003 10:22 AM |