Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timeout...
Message
From
13/04/2000 10:17:51
 
 
To
13/04/2000 08:59:34
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00359198
Message ID:
00359257
Views:
8
Tom,

>Any ideas on the logic or an easier way to achieve the same result?

Could we clarify the result that you want? Is this correct: You want to return to page one of a pageframe if there has been no user activity for x number of minutes/hours?

Usually timeouts (such as closing open forms and returning to a startup condition or even exiting the app) can be achieved with an application-level timer that is reset with every keystroke and/or mouse click. You can put code in your base subclasses of controls to reset that timer in the KeyPress, MouseDown and/or InteractiveChange events, that will call something like oApp.ResetTimer() .

At least one of the commercial frameworks uses something similar to this.
You could use the same principle at the form level or even at the pageframe level with just one timer.

I guess the more important question might be why does user inactivity cause problems with your app? Are they holding file locks, or something like that? There may be a design issue that could be handled differently and eliminate this problem.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Reply
Map
View

Click here to load this message in the networking platform