ADSSchedule class
The SetDay method specifies whether the job will be run on a specified day of the month.
C++ |
hr=schedule->SetDay(int dayOfMonth, VARIANT_BOOL setting) |
VB |
schedule.SetDay(integer dayOfMonth,boolean setting) |
dayOfMonth |
The day of the month to be set. Specify ADS_LAST_DAY_OF_MONTH to specify that the job will be run on the last day of the month (regardless of whether that is the 28th, 29th, 30th, or 31st day of the month). Specify ADS_ALL_DAYS to run the job on all days of the month (equivalent to calling SetDay for all days of the month). |
setting |
TRUE if the job will run on the specified day, FALSE otherwise. |
If no days are specifically selected, the job will be run on every day. This is the default for a new schedule.
To enable only specific days, first call SetDay(ADS_ALL_DAYS,FALSE) to disable all days, then call SetDay(x, TRUE), where x is the day you want to enable.