Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timing out
Message
From
21/05/1998 09:08:08
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
21/05/1998 07:55:24
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00100666
Message ID:
00100771
Views:
41
>>>Application for hospital laboratory that requires password for entry.
>>>If there is no "activity" for 3 min (for example) is there a way to program "cut out" to a level or screen that would again require a password for reentry?
>>You could use a timer class with a custom property tLastActivity to store datetime of last activity. If no activity for a given period its timer event would call form(set) release after a cleanup.
>>Cetin
>
>Or, just call the reset() method of the timer for the appropriate form events (mousemove, gotfocus, click, etc...). This should work the same, no?
>
>Paul M.
Paul,
If you use a menu, I think it would be easier to use skipfor (just timer.reset and return .t. on a pad). Because that would prevent to add code to so many controls and called as often as necessary (with every refresh at least AFAIK).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform