Movicon Help on Line - Rel. 11.7.1301
Syntax |
RemoveHoliday(_dt) |
Description |
This function allows you to remove a Holiday from the scheduler object. The date is removed only if present, otherwise this function returns "false". You need to pass a "date" parameter to this function where only the day and month are considered. |
Parameter |
Description |
_dt as date |
Date to be removed from list of holidays. |
Result |
Boolean |
Example:
Option Explicit
Public Sub Click()
Dim SchedObj As SchedulerCmdTarget
Set SchedObj = GetScheduler("Sched1")
If Not SchedObj Is Nothing Then
SchedObj.RemoveHoliday(now)
End If
Set SchedObj = Nothing
End Sub