How to identify failed records in the search?

pileggi
08-23-2005, 10:49 AM
Hi,
I need to identify, after the importation, using VB code, the records that MapPoint hasn't found. I see that MapPoin put these points (in the Route) in the center of the selected area, but I don't know more. Someone is so kind to tell me where I have to look for?
Thanks,
Pileggi

Mohamed
08-23-2005, 03:38 PM
Hi ,

If you do it programmatically, Just read your file and for each address ( Loop ) test the ResultsQuality Property



See this example: ( Sorry I don't use VB programming, you have to check the syntax )



Set objmap = MappointControl1.ActiveMap
Dim objFR As MapPointctl.FindResults

'Syntaxe
'objet.FindAddressResults([Street], [City], [OtherCity], [Region], '[PostalCode], [Country])

'StreetAddress = address x
'City = City x
'etc.

Set objFR = objmap.FindAddressResults(StreetAddress, City ,State,Zip,geoCountryItaly)

If objFR.ResultsQuality = geoFirstResultGood Then
objmap.AddPushpin objFR.Item(1), "indirizzo esatto"
Else

'See the other matches if any, what you call NOT FOUND
For i = 1 To objFR.Count
Message objFR.Item(i).Name
Next
End If


Ciao

pileggi
08-24-2005, 01:48 AM
Thank you veri much! :)
Pileggi

 
Web mp2kmag.com
mapforums.com