Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timer
Message
From
02/06/2003 15:40:44
 
 
To
02/06/2003 11:00:45
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Re: Timer
Miscellaneous
Thread ID:
00795226
Message ID:
00795380
Views:
13
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
Previous
Reply
Map
View

Click here to load this message in the networking platform