Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scripted Try Catch Error
Message
De
21/06/2003 15:09:18
 
 
À
21/06/2003 14:36:55
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Divers
Thread ID:
00802618
Message ID:
00802622
Vues:
29
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!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform