Remarks | Properties | Methods | Samples |
ED
|
avaliable
|
RT
|
avaliable
|
The ScheduleValues collection contains the switching points of a
schedule. A switching point is linked to a point of time, a
variable/function and a value or VBA macro. The execution of the
switching point is defined with a status (in-/active). The linked
point of time can also be taken from a parent schedule.
With this Item method combined with the Count property you can
iterate through the switching points of a schedule.
Count | Parent | Session |
CreateValue | DeleteValue | Item |
'''''''''''''''''''''''''''''''''''''''''''''' '''''''''''Creation and Deletion'''''''''''''' '''''''''''of 5 Schedule Values'''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''' Private Sub test() Dim pfs As PfsEngine Dim i As Integer Dim g As Integer Set pfs = MyWorkspace.ActiveDocument.pfs Dim mytype As tpPfsLinkTypes mytype = tpPfsFunction Debug.Print "---->Creation:" For i = 0 To 4 Debug.Print pfs.Groups.Item(0).Schedules.Item(0).ScheduleTimes.Item(0).ScheduleValues.Count pfs.Groups.Item(0).Schedules.Item(0).ScheduleTimes.Item(0).ScheduleValues.CreateValue (mytype) Next i Debug.Print "---->Deletion:" For i = pfs.Groups.Item(0).Schedules.Item(0).ScheduleTimes.Item(0).ScheduleValues.Count - 1 To 0 Step -1 pfs.Groups.Item(0).Schedules.Item(0).ScheduleTimes.Item(0).ScheduleValues.DeleteValue (i) Debug.Print pfs.Groups.Item(0).Schedules.Item(0).ScheduleTimes.Item(0).ScheduleValues.Count Next i End Sub