Razzak, This is my DAT file that opens the main form.
CONNECT Labor CLS -- Make sure that previously SATTACHed table is detached SET ERROR MESSAGE 2038 OFF SDETACH Leadall NOCHECK SET ERROR MESSAGE 2038 ON -- Make sure that the previously DSN-Less Database is Disconnected SDISCONNECT ';Driver=R:BASE 7.6 Database Driver (*.rb1);dbq=Sales' -- Now Connect the Database Using the DSN-Less Connection SCONNECT ';Driver=R:BASE 7.6 Database Driver (*.rb1);dbq=Sales' -- Attach Leadall table with proper columns. -- SATTACH LEADALL USING LEADCODE ALIAS CONTACT,COMPNAME,COMPADD,COMPCITY, COMPSTATE,COMPZIP,COMPAREA,COMPPHPRE,COMPPHSUF,COMPEXT,sPROMOCAT,sPROMOI D,LEADDATE,DATEANSW,SALEPER,TICDATE,INTEREST,LEADGOOD,NOTES,LEADCODE EDIT USING KayParkMainMenu -- Make sure that DSN-Less Database is Disconnected SDISCONNECT ';Driver=R:BASE 7.6 Database Driver (*.rb1);dbq=SALES' DISCONNECT EXIT RETURN Would I put this code SET TIMEOUT 60 before (or just after) the CONNCET LABOR statement or before (or just after) the EDIT USING KayParkMainMenu statement? Jim -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of A. Razzak Memon Sent: Saturday, July 25, 2009 11:13 AM To: RBASE-L Mailing List Subject: [RBASE-L] - Re: TIMER >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.

