>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?