Navigation bar
  Home Print document Start Previous page
 89 of 234 
Next page End  

Gravitybox Schedule Primer
Page 87 
1998-2004 Gravitybox Software LLC
Table 8.2
Conflict Object Definition
Index
This property is the index in the Conflicts collection of the
current object.
ScheduleItems
This collection holds references to the appointment in this
conflict group.
Conflict Displays
Displayed in Figure 8.1 is an example with five appointments. Two of them, the third
and fourth ones, conflict with each other. The ScheduleItems collection will contain five
elements and the Conflicts collection will contain four group objects. Each group object
will contain one appointment in its ScheduleItems collection except for the third group,
which will have two. These are the third and fourth appointments.
Figure 8.1
In this example, the Count method of the Conflicts collection returns the value 4.
Following is a loop that determines which elements are in the collection.
Dim oConflict As CConflictEl
Dim oAppt As CScheduleEl
  For Each oConflict In Schedule1.Conflicts
    For Each oAppt In oConflict.ScheduleItems
      Debug.Print oAppt.Index
    Next
  Next
The output from this code fragment is as follows.
3
4
http://www.purepage.com