Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FOR NEXT and Event()
Message
From
06/03/1997 21:09:26
 
 
To
06/03/1997 19:19:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00023029
Message ID:
00023243
Views:
41
>>>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?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform