Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timer Event firing after zero ms
Message
From
07/10/2004 13:11:53
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00949593
Message ID:
00949636
Views:
9
>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
>>
No problem for the stars number.
Previous
Reply
Map
View

Click here to load this message in the networking platform