Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FOR NEXT and Event()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00023029
Message ID:
00033629
Vues:
52
>I have a FOR NEXT which is going like this.
>
>FOR lnCompteur=1 TO 100
> Send('Something')
> ...
>NEXT
>
>The Send() method is sending a string to a server. This sent string will make the server send a reply back which will arrive in a Receive() event.
>
>I can't continue with the second FOR NEXT loop until the Receive() event has fired. So, for each 100 send, I need to wait for the Receive() event to loop and continue with the next send.
>
>I tried this but this was locking the CPU and the Receive() event was never fired.
>
>FOR lnCompteur=1 TO 100
> Send('Something')
> llReady=.F.
> * We assume the Receive() event will make llReady=.T.
> DO WHILE NOT llReady
> ENDDO
>NEXT
>
>Then, I tried with a timer but with no success.
>
>Any idea?
Karen E. Lahey
Huron Valley Software Consulting LLC
klahey@hvsc.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform