Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need timeout check for entire program
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00692237
Message ID:
00692956
Views:
21
>Ok i was reading this thread and this is interesting.. i have something more or less like this... but the think is... my aplication its a payroll system (or i dont know how to say it in english) sometimes if i have a lot of data and i'm making like a huge process that checks the history tables and calculates something from the history it can take about 3 minutes or so.. i have a client that wants 2 minutes of idle time.. the question is how can i see if there's a process runing of that kind, so that i ignore the process time for inactivity or something like that??

You could disable the timer or the timout system when you know there is a large process that might take longer than your timeout -

Start your process...

oApp.DisableTimeOut()

which does something like this...
oApp.oTimeoutTimer.Interval = 0

After your process finishes,
oApp.EnableTimeOut()

which does something like this...
oApp.oTimeoutTimer.Interval = oApp.nTimeoutInterval
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform