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

Gravitybox Schedule Primer
Page 25 
1998-2004 Gravitybox Software LLC
In the doctor’s example, there are four providers, “John”, “Sue”, “Fred”, and “Jane”.
These people work in the office and each has a set of appointments. First, these
providers need to be added to the Providers collection.
Call Schedule1.Providers.Add("John", vbBlue)
Call Schedule1.Providers.Add("Sue", vbYellow)
Call Schedule1.Providers.Add("Fred", vbRed)
Call Schedule1.Providers.Add("Jane", vbGreen)
Figure 1.4
Now that the providers are part of the schedule, appointments may be assigned to
each. This may be accomplished by setting the Provider property of an appointment to
the desired Provider object’s name or index. This will associated the specified Provider
and appointment. The user may view this association on the schedule by selecting the
bottom tab on the tab strip in the top, left corner of the schedule, if a tab strip exists.
This will toggle the schedule into provider mode. Also the schedule property
ShowProviderScheduledTime must be true to for the Providers collection’s information
to be displayed in the left margin of the schedule.
Table 1.6
Provider Object Definition
Color
This property stores the color associated with this Provider object. The
provider bar for this Provider object will be displayed as this color.
Id
This is a 32-bit integer that may be used to store extra data.
Name
This is the name, as well as the caption, of the Provider object. This
property is read-only; however renaming the object, through the Providers
collections using its Rename method will change it.
The Providers collection exposes much of the same interface as the Rooms and
Categories collections. These methods and properties may be used to manipulate
http://www.purepage.com