Originally posted by Tony VanHorn: I have a section of code that executes at least once, but maybe twice and thats all.
Seems to me your second example does exactly what you want, Tony. To compare it with what you say above:
So, anyone with another idea of how to handle this without a loop or repeated code? Any "hint" in the right direction would be greatly appreciated.
Not another idea but I seems like the way to go...
Joined: Dec 13, 2006
yeah, so that was the way to go, the issue i had was my line of code was too long to repeat twice. I found in another thread that pulling that line of code into a method and then just calling the method twice would be a better choice. Thanks for the input.