
Advanced Programming Question
If I have a While loop inside a For loop and do a Exit For in the While loop
am I not cleaning up right? I'm worried (knowing VB and Microsoft) that
pointers are not being popped off the stack correctly or something like
that. Another external event sets x and y. Example:
Private Sub SomeProcedure()
tmrPoll.Interval = 5000
For i=1 To 3
tmrPoll.Enabled = True
While tmrPoll.Enabled
DoEvents
If x=y Then Exit For '<--Is this gonna cause a problem?
Wend
If x=y Then Exit For
Next
End Sub
Private Sub tmrPoll_Timer()
tmrPoll.Enabled = False
End Sub
Tim :)
Tim Berneman
President of Central Iowa Visual Basic User Group (CIVBUG)
Webmaster of Central Iowa Visual Basic User Group (www.civbug.org)