G
Guest
Hi;
I have designed a vb.net program that reads a dateTime value from a database
table and then compares it to Now() through dateTime.compare(). I have loaded
an array with my datetime values from my table and I loop through this until a
match is made and then I run another program. Since I am continously checking
the system for a specific time the CPU stays at 99 %. I tried adding a do
loop and a timer to try to slow down the time between iterations of my
comparison loop but I still don't have the time right.
Here is my code if it's helps:
Do
For y = 0 to Len(holdDateTime_Start(y))
If dateTime.Compare(holdDateTime_start(y), Now) = 0 then
processJobs(holdJobName(y))
end if
Exit For
next
initializeTimer()
Do
Loop until Timer1.interval = 0
y = 0
Loop Until dateTIme.Compare("08/31/2006 12:00:00 AM", Now) = 0
Yes, I am trying to build my on task sceduler since the windows version
doesn't fit my needs.
Thanks for your suggestions.
I have designed a vb.net program that reads a dateTime value from a database
table and then compares it to Now() through dateTime.compare(). I have loaded
an array with my datetime values from my table and I loop through this until a
match is made and then I run another program. Since I am continously checking
the system for a specific time the CPU stays at 99 %. I tried adding a do
loop and a timer to try to slow down the time between iterations of my
comparison loop but I still don't have the time right.
Here is my code if it's helps:
Do
For y = 0 to Len(holdDateTime_Start(y))
If dateTime.Compare(holdDateTime_start(y), Now) = 0 then
processJobs(holdJobName(y))
end if
Exit For
next
initializeTimer()
Do
Loop until Timer1.interval = 0
y = 0
Loop Until dateTIme.Compare("08/31/2006 12:00:00 AM", Now) = 0
Yes, I am trying to build my on task sceduler since the windows version
doesn't fit my needs.
Thanks for your suggestions.