Ok... can i make a loop when you press command1 and then have it stopped when you press command2.
I'm not worried about any lagg or w/e... but i'm curious if this works. I dought it'll lagg since i have two processors, but jw if this is possible.
Ok... can i make a loop when you press command1 and then have it stopped when you press command2.
I'm not worried about any lagg or w/e... but i'm curious if this works. I dought it'll lagg since i have two processors, but jw if this is possible.
Yes, you can
Code:'declare variable
Dim StopLoopFlag as boolean
Private Sub cmdStart_Click()
StopLoopFlag = True
do while StopLoopFlag
Do your things....
DoEvents
loop
End Sub
Private Sub cmdStop_Click()
StopLoopFlag = false
End Sub