G
Guest
I have a global variable that I set in one procedure that is called from one
event. There are also some events such as getfocus, lostfocus, etc. that are
triggered for another control that get stacked up that apparently are
executed after my procedures exits. The new Global variable value that gets
set in this procedure is not recognized by the events that execute after my
procedure exits. Instead the old value of the Global Variable is used. I
have tried Application.DoEvents all over the place and it doesn't seem to
help. Does anyone else have this problem?
The particulair event that I call the procedure from is a TextBox Validating
event and the variable is used in the next control that gets the focus.
I know this isn't very clear but if anyone knows what I'm trying to
describe, please let me know that I'm not the only one having this problem
and hopefully, a solution.
event. There are also some events such as getfocus, lostfocus, etc. that are
triggered for another control that get stacked up that apparently are
executed after my procedures exits. The new Global variable value that gets
set in this procedure is not recognized by the events that execute after my
procedure exits. Instead the old value of the Global Variable is used. I
have tried Application.DoEvents all over the place and it doesn't seem to
help. Does anyone else have this problem?
The particulair event that I call the procedure from is a TextBox Validating
event and the variable is used in the next control that gets the focus.
I know this isn't very clear but if anyone knows what I'm trying to
describe, please let me know that I'm not the only one having this problem
and hopefully, a solution.