Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Try...Catch...Endtry
Message
De
05/06/2003 15:03:12
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Try...Catch...Endtry
Divers
Thread ID:
00796898
Message ID:
00796898
Vues:
49
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
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform