General information
Category:
Forms & Form designer
>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only