Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When FINALLY shines
Message
From
23/11/2004 07:55:38
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Miscellaneous
Thread ID:
00963754
Message ID:
00963787
Views:
8
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform