>>Does anyone have another idea on how to get a wait state for my while loop so winsock can update itself?
declare Sleep in Win32API integer nMilliseconds
>Sleep(1000)
Doug
All that's going to do it put the single VFP thread to sleep, which means the control goes to sleep along with VFP. Playing with the AutoYield property is the only thing I can think of that might give the results desired.
Mike Stewart