SetProgram
SetProgram(FuncName AS STRING, FuncStatus AS STRING, DayOfWeek AS INTEGER, Start AS TIME, End AS TIME, Mode AS STRING) AS INTEGER
Set the week schedule for the function <FuncName> with the status <FuncStatus> and the Mode <Mode> for the days <DayOfWeek> in the time interval <Start> and <End>.
DayOfWeek is a mask value defined like this:
- 1: for Monday
- 2: for Tuesday
- 4: for Wednesday
- 8: for Thursday
- 16: for Friday
- 32: for Saturday
- 64: for Sunday
- 428: for holiday
Returns 0 if no error.