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

Click here to load this message in the networking platform