Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When FINALLY shines
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Divers
Thread ID:
00963754
Message ID:
00963757
Vues:
7
>Hello
>
>Help says.
>'...FINALLY block, which you use to clean up any resources allocated by the TRY block and always runs except when the CANCEL and QUIT commands are used'
>
>So if FINALLY does not run after CANCEL or QUIT then we can do a cleanup after EndTry.
>
>What makes FINALLY so special?
>Thank you.
>Kamil

Because this Block is executed no metter what the Result of TRY is.
TRY
    fl_error = .f.
**  somecommand
CATCH oExc
   fl_error = .t.
  ** catch the exception
FINALY
   executed no metter if  fl_error = .f. or .t.
ENDTRY
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform