In the following Code, would the "Exit Here:" code run even if there is no error? Because sometimes I get an error when I have my close in both places.
Please Login or Register to view this content.
Thanks in advance,
Dan
In the following Code, would the "Exit Here:" code run even if there is no error? Because sometimes I get an error when I have my close in both places.
Please Login or Register to view this content.
Thanks in advance,
Dan
Last edited by split_atom18; 05-28-2010 at 09:41 AM. Reason: Marked Solved & Removed Post Icon
"I am not a rocket scientist, I am a nuclear engineer." - Split_atom18
If my advice has been helpful to you, then please help me by clicking on the "Star" and adding to my reputation, Thanks!
Sure. You need an Exit Sub before Exit Here.
And this is a preferable declaration:
Please Login or Register to view this content.
Entia non sunt multiplicanda sine necessitate
Thank you this answers my question perfectly!!!
I can use the preferable, side note question. Why? i.e. why have 2 statements to do one?
Thanks in advance,
Dan
Last edited by shg; 05-27-2010 at 05:54 PM. Reason: deleted quote
Another question on topic:
Since my code seems to be buggy at best. (i.e. I am learning)
I want to ensure I close connections even if there is an error. I learned that if the .close and =nothing are after the resume exithere, then I end up in an endless loop.
So should I use:
Please Login or Register to view this content.
Thanks in advance,
Dan
Read this code and decide what the two msgboxes should say. Then run it.Why? i.e. why have 2 statements to do one?
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks