Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto log out from Foxpro 2.6a 1

Status
Not open for further replies.

benzhaotb

Technical User
Dec 25, 2001
46
US
Can anyone program Foxpro 2.6a auto log out a user after 20 mins without activaties. Tahnks
 
In the READ or BROWSE.. in which the cursor waits for the user input, include the TIMEOUT option.

Just after the read/browse... add the code

IF READKEY() = 20 .or. READKEY() = 268
&& close all tables etc
&& ROUTINES FOR PROTECTION OF Dbfs ETC
QUIT
ENDIF

Hope this helps you :)


ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
 
READKEY() = 20 .or. READKEY() = 276 ... not 268 as mentioned above. Sorry for the error. ! :-( ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top