RunLate Example

 

This example sets the current task to run itself every 3 days starting on September 15, 1999 at 11:29AM. When the task runs, it will reschedule itself relative to the time it was originally set to launch. If the task is late, it will not run at all.

 

Sub Main

 ' Set the task to 兎very

 CurrentTask2.Frequency = 1

 

 ' Start launching on September 15, 1999

 CurrentTask2.LaunchDate = 09/15/1999

 

 ' At 11:59 AM

 CurrentTask2.LaunchTime = 11:29 AM

 

 ' Set the interval type to 電ays

 CurrentTask2.IntervalType = 2

 

 ' Set the interval to 3, for every three days

 CurrentTask2.Interval = 3

 

 ' If we are late, don稚 run at all

 CurrentTask2.RunLate = 1

 

 ' Reschedule the task relative to the launch date/time if we are late

 CurrentTask2.ScheduleLate = 0

End Sub