Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timer Event firing after zero ms
Message
From
07/10/2004 13:01:54
 
 
To
07/10/2004 12:25:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00949593
Message ID:
00949625
Views:
12
Hi Fabio,

Yes, sure, this is a solution. But it is still a workaround for something that should be a property, imo. That's why I gave it one star only. :)

>>Occasionally I need a timer to do its job (as declared in its Timer Event) right from the moment when setting its interval to nonzero, not for the first time after x milliseconds, but for the first time after zero ms.
>>
>>I know a workaround (simply call the Timer Event), but a property would be nice. Is it already in vfp8 or vfp9? If not, I might add it to the wishlist.
>
>
>DEFINE CLASS myTimer AS Timer
>
>   StartJust = .F.
>
>   HIDDEN PROCEDURE Interval_Assign(_interval)
>       this.Interval=m.interval
>       IF m.StartJust and m.This.Enabled
>          this.Timer
>       ENDIF
>ENDDEFINE
>
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform