>Chuck,
>
>You can try a Sleep() api call in your loop:
>
>
>declare integer Sleep in win32api integer iMilliseconds
>
>DO WHILE oWinsock.State <> 7
> sleep( 1000 )
> DOEVENTS
>ENDDO
>
>
That doesn't work for me because I'm waiting for the DataArrival event from the winsock control and the Sleep API seems to put winsock to sleep too.
Charles
"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers