Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WAIT TIMEOUT suspends in WIN 95/98 when in the backgroud
Message
From
26/08/1999 12:04:41
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00257971
Message ID:
00258005
Views:
21
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform