Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FOR NEXT and Event()
Message
De
06/03/1997 18:40:50
 
 
À
06/03/1997 00:52:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00023029
Message ID:
00023219
Vues:
37
>FOR lnCompteur=1 TO 100
> Send('Something')
> llReady=.F.
> * We assume the Receive() event will make llReady=.T.
> DO WHILE llReady
> DOEVENTS
> ENDDO
>NEXT

Now seriously: :)

Try this:

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

and disable the timer as first action in Timer event of your timer.

This one SHOULD work. Unless is not working... :)

Vlad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform