Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When FINALLY shines
Message
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:
00963757
Views:
8
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform