Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer
Message
De
02/06/2003 15:40:44
 
 
À
02/06/2003 11:00:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Re: Timer
Divers
Thread ID:
00795226
Message ID:
00795380
Vues:
12
Try setting the Interval property to something>0 (the default) and see if it works.
mytimer = CREATEOBJECT('Tmr')
mytimer.INTERVAL = 1000

DEFINE CLASS Tmr as Timer
PROCEDURE TIMER
  ?"Hello World"
ENDPROC
>Hello,
>I am trying to develop something that runs at intervals using a timer objet. I don't need a form so I'm trying doing this in my program code:
>
>SET CLASSLIB TO CustomClasses
>myTimer = CREATEOBJECT('Timer')
>
>I was expecting the timer to run and the code in it to be executed. However nothing happens. The timer doesn't seem to run at all.
>
>Can anybody please tell me what I've missed here?
>
>
>David
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform