Remarks | Properties | Methods | DynProperties | Samples |
ED
|
avaliable
|
RT
|
avaliable
|
The "TimeFunction" object, also called "Time control" in zenOn,
enables the user to define function calls which should be executed
at a defined (fixed) time or cyclically.
When defining the time control functions for the month or year
changes it is important to define the date correctly because this
lays down the day after the month or year change on which the
function is executed.
Active | Cycled | ID |
IntervalTime | MonthSwitch | Name |
Parent | StartTime | YearSwitch |
CheckIn | CheckOut | DynPropertiesEnum[GET] |
DynProperties[GET] | DynProperties[PUT] | Get |
IsCheckedOut | IsDaySelected | IsDifferent |
IsLocked | ItemRtFunction | SetDaySelected |
UndoCheckOut |
Name | Type | Description |
---|---|---|
Active | Boolean |
Active Active: The
time-function is executed in the Runtime. Read more in the online manual
|
ExecuteDate | ZT_DateTIME |
Start time Date, on which or from which the time-function should be executed. Read more in the online manual
|
Friday | Boolean |
Friday Active:
Function is (also) executed on Fridays. Read more in the online manual
|
Function | ZT_FUNCTION |
Function Function, that should be executed
time-controlled. Read more in the online manual
|
Interval | ZT_ZEIT |
interval Time interval, in which the function should be
executed. Read more in the online manual
|
Monday | Boolean |
Monday Active:
Function is (also) executed on Mondays. Read more in the online manual
|
Monthly | Boolean |
Turn of month Only available with
cyclic "Execution type": Read more in the online manual
|
Name | String |
Name Name of the time-function. Read more in the online manual
|
Saturday | Boolean |
Saturday Active:
Function is (also) executed on Saturdays. Read more in the online manual
|
Sunday | Boolean |
Sunday Active:
Function is (also) executed on Sundays. Read more in the online manual
|
Thursday | Boolean |
Thursday Active:
Function is (also) executed on Thursdays. Read more in the online manual
|
Tuesday | Boolean |
Tuesday Active:
Function is (also) executed on Tuesdays. Read more in the online manual
|
Type | Long |
Execution type from that
day: The function is executed from the defined day every day
at the defined time. Read more in the online manual
|
Wednesday | Boolean |
Wednesday Active:
Function is (also) executed on Wednesdays. Read more in the online manual
|
Yearly | Boolean |
Turn of year Only available with
cyclic "Execution type": Read more in the online manual
|
Sub CreateTimeFunction() Dim zFCT As RtFunction Dim zTFT As TimeFunction 'define the zenOn function to execute Set zFCT = MyWorkspace.ActiveDocument.RtFunctions.Item("fct_PrintReport") 'create timefunction... Set zTFT = MyWorkspace.ActiveDocument.TimeFunctions.Create("TimeFunction_1", zFCT.ID) 'change timefunction settings... With zTFT .Active = True .Cycled = True .IntervalTime = 10 '.... End With End Sub