Community of VE/MapPoint Users and Developers
This is a discussion on How to find the right within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hello, I've got a really simple question but it's a real problem for me to find a solution. I'd like ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
|
Vincent, Give this sample a try, hopefully it will get you on the right track... in this example I have 2 forms. Form1 has the map, this code is in a command button on form2 along with 4 textboxes. a command button on form1 opens form2. text1 - Street Address text2 - City text3 - State text4 - Zip Dim objmap As MapPointctl.Map Set objmap = Form1.MappointControl1.ActiveMap Dim objFR As MapPointctl.FindResults Set objFR = objmap.FindAddressResults(Text1.Text, Text2.Text, , Text3.Text, Text4.Text, geoCountryUnitedStates) If objFR.ResultsQuality = geoFirstResultGood Then objmap.AddPushpin objFR.Item(1), "Good Result" Else 'show other matches if any For i = 1 To objFR.Count MsgBox objFR.Item(i).Name Next End If Insted of showing the msgboxes you could make the textboxes on form2 combo boxes, then in the for next loop take the "objFR.Item(i).Name" and parse it with ParseStreetAddress method and fill the combo boxes with the results.
__________________ John http://www.support-pc.com Order MapPoint 2006 Here https://secure.mp2kmag.com/?refer=support-PC |
![]() |
| Tags |
| find |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |