Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timer Event firing after zero ms
Message
From
07/10/2004 12:25:39
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00949593
Message ID:
00949602
Views:
14
This message has been marked as a message which has helped to the initial question of the thread.
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform