Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When FINALLY shines
Message
De
23/11/2004 07:55:38
 
 
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:
00963787
Vues:
7
This message has been marked as the solution to the initial question of the thread.
>>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
>>
>
>But the code after EndTry will also execute no matter what.


Not necessarily. There could be an unhandled exception, a throw,...

See the discussion in:
http://fox.wikis.com/wc.dll?Wiki~TryCatch


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform