Comatose
Taboo Programmer
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
Do you need to show the actual time or the countdown of a timer? If time then the format i.e. hour:minute:seconds?
AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
You can user Timer Function
dim t as double
t=timer
do while (timer-t)<10.1
loop
Timer-T Return how many Second and milisec in diff
Timer return how manu sec passed in the day
hour=timer/3600
minute=(timer mod 3600) / 60
second=((timer mod 3600) mod 60)
milisec=clng(timer)-timer
omoridi
Junior Poster in Training
72 posts since Sep 2009
Reputation Points: 10
Solved Threads: 10
create a timer with interval 1000
and check in timer event
time is yours or not.
like t is your time = 9:00 pm
if time >=t then
ok
omoridi
Junior Poster in Training
72 posts since Sep 2009
Reputation Points: 10
Solved Threads: 10
do you want run a job at after 1 hour from now? it's ok?
for example now is 10:32 am
so you must have a jobtime equal with now+1 hour
so
JobTime=11:30 am
Ok
now you need a timer with interval 1000 (1 s) or 30000 (30s) in timer event
you must check if now bigger or equal Jobtime do your commands.
if Now>= JobTime and JobTime<>0 then
Call Job1 'its your job sub
JonTime=0
end if
that's it.
omoridi
Junior Poster in Training
72 posts since Sep 2009
Reputation Points: 10
Solved Threads: 10