Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scripted Try Catch Error
Message
From
21/06/2003 14:36:55
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Title:
Scripted Try Catch Error
Miscellaneous
Thread ID:
00802618
Message ID:
00802618
Views:
65
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!
Nathaniel Moody
Omnicell Technologies
natm@omnicell.com
Next
Reply
Map
View

Click here to load this message in the networking platform