TimeFunction.SetDaySelected



SetDaySelected(bValue As Boolean,lDay As Long)

Parameters

bValue As Boolean
State of the day for the execution of the function. If set TRUE, then the function will be executed on this day. Otherwise it will not be executed.
lDay As Long
Day that should be checked.
ED
avaliable
RT
avaliable

Remarks

Sets the state for the execution of the function on a specific day.

Day
Value
Monday
0
Tuesday
1
Wednesday
2
Thursday
3
Friday
4
Saturday
5
Sunday
6
In combination with the property "Cycled" the execution type for the "TimeFunction" object can be set.
Therefore, the value for the day has to be set to 8.
Execution type
Day value = 8
Cycled
Description
cyclic only on that day
True
True
The function is executed cyclically only on the defined day in the defined interval.
only on that day
True
False
The function is executed once on the defined day at the defined time.
cyclic from that day
False
True
The function is executed cyclically from the defined day in the defined interval.
from that day
False
False
The function is executed from the defined day every day at the defined time.

Sample


Sub zenOn_TimeFunction_SetExecutionType(ByRef zTime As TimeFunction)

	'Set execution type: "cyclic only on that day"
	zTime.SetDaySelected 8, True
	zTime.Cycled = True

	'Set execution type: "only on that day"
	zTime.SetDaySelected 8, True
	zTime.Cycled = False

	'Set execution type: "cyclic from that day"
	zTime.SetDaySelected 8, False
	zTime.Cycled = True

	'Set execution type: "from that day"
	zTime.SetDaySelected 8, False
	zTime.Cycled = False

End Sub


See Also

TimeFunction