Boolean Variable Strange

  • Thread starter Thread starter LGB54
  • Start date Start date
L

LGB54

Guest
1. in statement 1 i set a bool variable value to true

2. in statement 2: if variable is true then stop

The code does not stop in run mode. (I set a stop right after line 2 in order to check the variables state)

The variables state is false in spite of being set to true at line 1

i stop the code before line 1 and single step through it. The variable state is now true and execution executes the stop.

I normally try to fix it myself but i don't have a answer to this.

Stop: Sorry for the Post. I had a msgbox prior to the code and clicking on the msgbox was firing a form Activated event that was keeping my variable from being set to true. How it got to be true during single stepping is still a mystery to me but that's another story since it's no longer a issue. Thanks anyway.

Continue reading...
 
Back
Top