>We have an FoxPro 2.6a (X) interface application running in a DOS session. This interface waits for a text file to appear in a directory to process. If there is no file present, the interface waits a user defined amount of time and then checks again for a file. We have tried both WAIT TIMEOUT and INKEY() to implement the delay. If the DOS session running the interface is in the background, the TIMEOUT doesn't expire until the application is brought back to the foreground.
>
>We have only seen this behavior under Windows 95/98; it runs as expected under Windows NT. It only happens when running the application using FOXR.EXE; it runs as expected from the development environment
>
>Has anyone else experienced this behavior or know of a work-around for Windows 95/98?
>
>Thanks,
>Alan Ouellette
Alan,
You could do something like this :
function myDelay
parameters tnDelay
lnStart = seconds()
do while start - seconds() < tnDelay
enddo
Cetin