Foxpro DOS 2.6- Is there a way to force an event (logoff) if no activity

foxtek used Ask the Experts™
We have a large legacy system that consists of 100's of programs - menu driven.  Within each menu and/or program, I would like to implement some code to automatically 'log off' the user after a specified period of time (say 5 minutes) of system inactivity.  Is there an easy way to measure this event (inactivity) from within program or data entry screen under Foxpro DOS 2.6.

appreciate any ideas.  willing to pay for supplied code if works well.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
CaptainCyrilFounder, Software Engineer, Data Scientist

There are ways to implement outside timers in FPD.

The way I did it back then is then the user moved from one screen to another or made any selections. The program will check a certain flag in a file: system.maintenance = .T.


could you please elaborate on this a little bit.
Founder, Software Engineer, Data Scientist
I have on main.prg where it manages calling another form or closing one and opening another. Each time the user comes to this main.prg it will check a file called property for a maintenance flag if it's true. If it's true then it will shut the user out and log him off and quit the application. He cannot log in to the system unless this maintenance flag is false. This way I can upgrade the database at any time.

You can either force shutting down the application or prevent the user from proceeding. I do that on the network when upgrading the database.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial