The ErrTry-ErrCatch-ErrEndCatch macros are very useful, but they lack
support for a "finally" clause, which is executed whether an error is
thrown or not. Is there a better way to way to clean up after an error
is thrown, than the following pattern?
void Foo(void) {
UInt32 error2 = 0;
...
ErrTry {
...
if (...)
ErrThrow(errorCode);
...
} ErrCatch (error) {
error2 = error;
} ErrEndCatch;
// clean up, like you would in a finally clause
if (error2)
ErrThrow(error2);
}
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/