AddHoliday, SchedulerCmdTarget Function

Syntax

AddHoliday(_dt)

Description

This function allows a Holiday to be added to the Schedular object. The date is added only when not already done so otherwise this function returns "false". A "date" type parameter with day and month only must be passed to the function.

 

Parameter

Description

_dt as date

Holiday Date to be managed

 

Result

Boolean

 

Example:

Option Explicit

Public Sub Click()

Dim SchedObj As SchedulerCmdTarget

Set SchedObj = GetScheduler("Sched1")

If Not SchedObj Is Nothing Then

SchedObj.AddHoliday(now)

End If

Set SchedObj = Nothing

End Sub

 

See Also