Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Try...Catch...Endtry
Message
 
 
À
05/06/2003 15:03:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00796898
Message ID:
00796902
Vues:
14
More information about it...
--- Structured Error Handling in VFP 8 ---
--- by Markus Egger.
http://www.code-magazine.com/focus/Article.aspx?quickid=0301072

>I have just started using these and have to say I love them! What a great thing to add to the language. Why to go!

No more
lc_error = SET('ERROR')
ll_error = .f.
ON ERROR ll_error = .t.
*do something that might cause an error
IF ll_error
  * clean up
ENDIF

ON ERROR &lc_error.

Now it's

TRY
  * do something that might cause an error
CATCH
  * clean up
ENDTRY
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform