Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer Event firing after zero ms
Message
De
07/10/2004 13:11:53
 
 
À
07/10/2004 13:01:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00949593
Message ID:
00949636
Vues:
10
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform