Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FOR NEXT and Event()
Message
De
06/03/1997 21:09:26
 
 
À
06/03/1997 19:19:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00023029
Message ID:
00023243
Vues:
46
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform