>>>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