dkausa4851
Programmer
I'm using MSSOAP in vpf9. I'm calling the GeoCode function with the correct parameters and most of the time all is well. BUT, if the function does not find the address sent, it sends an error back to my program and displays an ulgy system message before I display my message to the user.
GeoCode is supposed to send back a lat/lon in an array, two strings. If it can't find the address, it sends back a false. How can I trap this before it displays its cryptic error message???
Thanks
leArr = oGeo.GeoCode(cStreet, cCity, cState, cZipCode, this.u_sessioncode)
IF TYPE('leArr[1]') = 'L'
lcErrorMsg = "Unable to retrieve Lat/Long co-ordinates "
MESSAGEBOX(lcErrorMsg)
ELSE
this.rlatitude = leArr[1]
this.rlongitude = leArr[2]
this.rReturnCode = "0"
ENDIF
GeoCode is supposed to send back a lat/lon in an array, two strings. If it can't find the address, it sends back a false. How can I trap this before it displays its cryptic error message???
Thanks
leArr = oGeo.GeoCode(cStreet, cCity, cState, cZipCode, this.u_sessioncode)
IF TYPE('leArr[1]') = 'L'
lcErrorMsg = "Unable to retrieve Lat/Long co-ordinates "
MESSAGEBOX(lcErrorMsg)
ELSE
this.rlatitude = leArr[1]
this.rlongitude = leArr[2]
this.rReturnCode = "0"
ENDIF