Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timer duration
Message
From
09/06/2008 12:48:09
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01322323
Message ID:
01322594
Views:
14
>>Is possible to cause a timer object of the form to expire after a period of time running, for example: 2 minutes ?
>
>You can turn it off by setting Enabled=.F. property.

To determine the 2 minute limit, you could add a second timer object (with its INTERVAL value set to 2 * 60 * 1000) which would disable the first TIMER and itself when its TIMER() event fired.

Or you could add a property to your FORM with a DATETIME() variable type.
Populate the new property on the first firing of the TIMER() event.
Compare the value in that property against the current DATETIME() value on all subsequent firings of the TIMER() even, and when 2 minutes have elapsed, disable itself.

Hope this helps
Previous
Reply
Map
View

Click here to load this message in the networking platform