I am tring to catch a NilObjectException in the follwoing code…
[code] Try
location.Address = lbContacts.Cell(lbContacts.ListIndex,1)
WebPage1.MapViewer1.GoToLocation(location)
tfLocation.text=lbContacts.Cell(lbContacts.ListIndex,1)
Catch e As NilObjectException
MsgBox “Not Found. The entered address is probably not valid.”
End Try[/code]
I also tried Catch e As RuntimeException. Neither catch the errror. The app stops with a NilObjectException error on “Location.Address =…” where the error is expected.
What am I doing wrong, or am I not understanding how this works?
Thanks,
John