Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scripted Try Catch Error
Message
From
21/06/2003 15:09:18
 
 
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Miscellaneous
Thread ID:
00802618
Message ID:
00802622
Views:
28
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!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform