Community of VE/MapPoint Users and Developers
This is a discussion on FindAddress Results in c# within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi The code below has been converted from vb.net to c# and now generates a error public void GetLatLon (string ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| FindAddress Results in c#
This did it if anyone wants to know. public void GetLatLon (string pc) { try { MapPoint.Map objMap; MapPoint.Location objLoc; MapPoint.FindResults objRes; objMap = globals.t.map1.ActiveMap; objRes = objMap.FindAddressResults(string.Empty, string.Empty, string.Empty, string.Empty, pc, null); if(objRes != null && objRes.Count > 0) { object index = 1; objLoc = objRes.get_Item(ref index) as MapPoint.Location; } objLoc = null; objMap = null; } catch (Exception err) { Interaction.MsgBox(err.Message, 0, null); } } Thanks to Chandu for the pointer. |
![]() |
| Tags |
| findaddress, results |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FindAddress neighbourhood BE | eblubber | MapPoint Web Service and Virtual Earth | 1 | 03-24-2006 03:00 AM |
| What does it mean if FindAddress is returning null? | chance1166 | MapPoint Web Service and Virtual Earth | 0 | 01-12-2006 12:29 PM |
| problem with FindServiceSoap. findAddress() in java | Anonymous | MapPoint 2006/2009 Discussion | 0 | 04-24-2005 12:24 PM |
| delphi mp2k4 findaddress | Anonymous | MapPoint 2006/2009 Discussion | 4 | 03-24-2005 02:01 PM |
| Using MapPoint 2001 from C++ - the 'FindAddress' problem | Anonymous | MP2K Magazine Articles | 0 | 08-17-2001 12:48 AM |