![]() ![]() ![]() ![]() ![]() Gravitybox Schedule Primer
Page 23
1998-2004 Gravitybox Software LLC
Call Schedule1.Categories.Add(100)
Debug.Print Schedule1.Categories(100).Name ERROR
This logic also applies to all object collections in this product. The name of no object
may be numeric.
NOTE: An appointments Category property is not aware of changes in the Categories
collection. If an appointment has a Category property of 2, referring to the second
category in the Categories collection and this element is removed, the appointment will
still point to the old (now non-existent) Category object.
Figure 1.3
Table 1.4
Category Object Definition
Color
This property stores the color associated with this Category object.
The category bar for this Category object will be displayed in this color.
Id
This is a 32-bit integer that may be used to store extra data.
IsDirty
This property will determine if any modifications have occurred, since
the last time it was set to false. If any property of any Category object
is modified this property is set to true.
Name
This is the name as well as the caption of the Category object. This
property is read-only; however it may be changed with the Categories
collection, using its Rename method.
The Categories collection has the same methods as the Rooms collection. They may be
used to manipulate Category objects within the collection. There are also search
functions that make finding a particular object much easier. Additional language support
may be provided for the same reasons and by the same methods as explained for the
Rooms collection.
|