At 11:31 AM 8/4/2003 -0400, Jim Limberg wrote:
SET TIMEOUT 60 only works if they are not in a form or report, etc... Almost useless for a lot of situations.
Jim,
Did you know that in R:BASE 6.5++ (Build:1.842xRT03) and higher:
If TIMEOUT was set to 1 it always exited after one minute. Now when TIMEOUT is set to one it will actually take two minutes of inactivity for it to exit. Two takes 2, three takes 3, and so on. What we do is start a timer loop that fires every minute. Each minute it increments a "no activity" flag which is reset to 0 if there is keystroke activity. This is why there is nothing to "reset" until the first minute passes. We have also added a close of any open database just before it bails out too.
The default for TIMEOUT is 0 (zero), which does not activate a countdown. TIMEOUT is set in minutes (not seconds), and all workstations must set TIMEOUT separately.
When a TIMEOUT occurs, a command file can be run; however, the command file cannot include a FILLIN or DIALOG command, or expect a keystroke. If you want to run a command file when a TIMEOUT occurs, you need to store the name of the file in a variable called RBTI_TimeOut.
For example:
SET VARIABLE RBTI_TIMEOUT TEXT = 'c:\word\cleanup.rmd' Note: The command file must end with a RETURN command.
The following command line will exit a user to the operating system after the user's workstation is inactive for one hour:
SET TIMEOUT 60
Hope that helps.
Have Fun!
Very Best R:egards,
Razzak.

