L
Lars Brownies
I have a long sub that uses several functions. Every function returns a
boolean. When False, the sub is stopped, like:
if MyFunc1 then
'do something
else
exit sub
endif
However I have several recordsets opened during execution of the sub. I'm
not sure what the best way is to clean them up when there is premature sub
exit. Should I explicitly clean them before every 'exit sub' or should/can I
direct the code to the exit routine of the sub and clean them there once? I
noticed that resume always require an error statement. Or is it best to
create a function that closes the recordsets?
Thanks,
Lars
boolean. When False, the sub is stopped, like:
if MyFunc1 then
'do something
else
exit sub
endif
However I have several recordsets opened during execution of the sub. I'm
not sure what the best way is to clean them up when there is premature sub
exit. Should I explicitly clean them before every 'exit sub' or should/can I
direct the code to the exit routine of the sub and clean them there once? I
noticed that resume always require an error statement. Or is it best to
create a function that closes the recordsets?
Thanks,
Lars