>>>FOR lnCompteur=1 TO 100
>>> Send('Something')
>>> Timer.Enabled=.t.
>>> llReady=.F.
>>> * We assume the Receive() event will make llReady=.T.
>>> DO WHILE NOT llReady
>>> DOEVENTS
>>> ENDDO
>>>NEXT
>This will also show where's the problem. The timer will execute only once, so, it will be just one Timer event to be processed. The DOEVENTS may never end because the Timer is overloaded (please note that it can be overloaded by any windows app, since there's only one real timer (interrupt) on one computer). Test it with just your app opened in Windows.
I tested that. I put a WAIT WINDOW in my timer event and it goes in there. But, my Receive() does not fire.
The loop turns and never get out. The DOEVENTS is executed again and again. The Receive() event never fires.
The main goal is to have a FOR NEXT which will wait for the Receive() event before sending the next Send().
Any more idea?