Just a SWAG - any difference if you put a FINALLY in there?
good luck
>When embedding a Try Catch EndTry statement in a scripted .wcs file, I get a "TRY/CATCH/FINALLY/ENDTRY mismatch or error. #2058". The same statement works just fine within VFP8.
>
>I may be making a silly mistake. Any advice is greatly appreciated. I of course can go back to the "on error llError = .t." business, or put the soap call in a server method... but I would really like to use try catch in scripted code. Here is the code I am trying to execute:
>
>
>try
> loSS = createobject("mssoap.soapclient")
> loSS.mssoapinit("http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl")
> lcCostPrice = "<B>" + transform(loSS.GetQuote("MSFT"), "$$$$.99") + "</B> @ " + right(transform(datetime()),11)
>catch to oError
> lcCostPrice = "Error: " + oerror.message + " Number: " + transform (oError.errorno)
>endtry
>
>
>Thanks in advance!