Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Force Log Out
Message
From
07/07/2005 08:48:08
 
 
To
29/06/2005 14:20:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01025841
Message ID:
01029886
Views:
22
Alan, can you provide more detail as the how these timers work? (What is the table you refer to and how is is updated, etc.


>
>I agree except that I did not add a timer to each form in the app. I created 2 timer classes - one to check the file, the other to log the user off the system. I just CreateObject'd them at the start of the application. They run as global timers, and so far, it's been working nicely.
>
>In the app startup sequence:
>
>* create timer to check table for logoff flag set (starts up enabled)
>* timer will bring up logoff msg form if flag is true
>otmrLogOffCheck = CreateObject('tmrUserLogOffCheck')
>otmrLogOffCheck.interval = 1 * 60 * 1000  && check once a minute
>otmrLogOffCheck.Reset()
>
>* create timer to log user off (starts up disabled)
>otmrLogOff = CreateObject('tmrLogOffUser')
>otmrLogOff.interval = 2 * 60 * 1000  && 2 minutes - will be started up by logoff msg form
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform