Hi Claudio,
Thanks for your help.
It would be nice to have a no errors clause in the try, catch, finally that way you could execute code if no errors occured without having to set flags (switches) to determine if an error occurred. When you update a table and need to reset other flags/switches like bAddMode, bEditMode etc.
Thanks again!
Roland
===========================================================================
>Hi, Roland.
>
>>What is the Finally used for if it is always executed? Just place the Finally code after the End Try.
>
>Don't do that. If an error occurs inside a Try/Catch, the lines after End Try may not be executed at all. On the other hand, the Finally block will always execute. Got it?
>
>
>>What I was trying to determine if the try command had a way to execute code if no errors occurred.
>
>yes, definitely the Finally block is the way to go. :)
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only