At 10:54 AM 7/25/2009, Jim Belisle wrote:
I want to do is make it so the main form used by the sales and shop
personnel will close after a set amount of time IF the form has not
been used. My goal is to make sure it does not close while they are
using it.
Jim,
Use TIMEOUT settings to achieve your goal.
HELP TIMEOUT will reveal all details regarding the TIMEOUT setting
in R:BASE.
A countdown only begins when R:BASE is waiting for a keystroke--not
while R:BASE is processing commands or while you are entering data.
This feature is also useful for automatically disconnecting idle
R:BASE sessions for scheduled database maintenance, etc.
To use TIMEOUT setting for all users, the best method is to use
SET TIMEOUT nnn in your application startup file.
If you need to use this setting for specific users, then try the
following code in your application startup file or application
main menu form as "On Before Start" EEP.
Here's how:
-- Example 01 (Based on logged User Name):
IF (CVAL('NETUSER')) IN (JWatson,JonDoe,JanDoe) THEN
SET TIMEOUT nnnn
ENDIF
RETURN
-- Example 02 (Based on Specific Computer Name):
IF (CVAL('COMPUTER')) IN (ComputerName1,ComputerName2) THEN
SET TIMEOUT nnnn
ENDIF
RETURN
And, that's all there is to it!
Very Best R:egards,
Razzak.