Remarks | Properties | Methods | Samples |
ED
|
avaliable
|
RT
|
avaliable
|
The ScheduleTimes collection contains the times of the schedule.
As the times of a schedule are inherited to its children, this list
contains all times of the schedule itself and all the times of
parent schedules.
Several switching operations can be executed at any time! With the
Item method combined with the Count property you can iterate
through the existing times.
Count | Parent | Session |
CreateTime | DeleteTime | Item |
'''''''''''''''''''''''''''''''''''''''''''''' ''''''''''Creating and Deletion of 5'''''''''' '''''''''''''''Schedule Times''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''' Private Sub test() Dim pfs As PfsEngine Dim i As Integer Dim g As Integer Set pfs = MyWorkspace.ActiveDocument.pfs Dim mytime As tpPfsTimeTypes mytime = tpPfsRelativeTime g = pfs.Groups.Item(0).Schedules.Item(0).ScheduleTimes.Count Debug.Print g Debug.Print "-------Creation-------" For i = 0 To 4 Debug.Print g pfs.Groups.Item(0).Schedules.Item(0).ScheduleTimes.CreateTime (mytime) pfs.Save g = pfs.Groups.Item(0).Schedules.Item(0).ScheduleTimes.Count Next i Debug.Print "-------Deletion-------" For i = g - 1 To 0 Step -1 pfs.Groups.Item(0).Schedules.Item(0).ScheduleTimes.DeleteTime (i) pfs.Save g = pfs.Groups.Item(0).Schedules.Item(0).ScheduleTimes.Count Debug.Print g Next i End Sub