I have a control Timer that executes its Timer Events 100 times. In other method I do the following:
A team is only pieces that you exchange until you finish the work, it is efficient, it works.
Code:
nTimes = 100
Timer1.Enabled = .T. && this enables the control Timer and its task begins.
&& But in this line I need to wait until the timer finish its task.
I tried:
DO WHILE TaskFinishedFlag = .T.
ENDDO
&& But it doesn't work
&& Any idea? I was reading about AutoYield and DoEvents but don't know how to implement them.
A team is only pieces that you exchange until you finish the work, it is efficient, it works.