Hi
I need to run a code on a particular period of time, for which i have been asked not to use a scheduler. I have an idea of using a timer that will call my cord.But i am not clear about the steps i need to follow in developing a timer script
Can anyone guide me in developing this code.
i will be thankful to whatever help being offered too.
thanks
Mano
Im not sure im getting what you need, but yes, you can leave a timer running with something like:
-
if time >= StartingTime and boo1 = false then
-
call Procedure1 ' Or any sub you want to run
-
boo1=true
-
elseif time >= FinishTime then
-
end
-
end if
Make sure you define Boo1 as a boolean outside the timer, so once the code runs for the first time, you wont run it again and again and again.Im not sure if "time" works for every version of VB, if it doesnt works, find out how to call the system's clock.
HTH