TIP: Click on subject to list as thread! ANSI
echo: delphi
to: ARMEN AMBARTSUMIAN
from: GARY WEINFURTHER
date: 1997-11-06 08:51:00
subject: Help Needed ,Ttimer

Armen Ambartsumian mentioned this to All:
 AA> Could somebody help me with Timer properties and so on...i have some
 AA> problems! So, how can i check events with Timer component, i mean ,  for
 AA> example we have a program that will run another program in 12:01 ?
If you are using Delphi 2 or 3, you might want to use a TThread instead of a 
timer.  Otherwise, since the Timer.Interval property can't be larger than 65K 
milliseconds, you will have to set it to 30000 (30 seconds) and check the 
system time every time the OnTimer event fires.  You could set it to 60000 
(one minute), but if the timer gets delayed, you might miss your target time.
                                ...Gary
--- GoldED 2.41
---------------
* Origin: Nobody expects the Flying Circus BBS! (1:2410/905)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.