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

Gravitybox Schedule Primer
Page 51 
1998-2004 Gravitybox Software LLC
can never be toggled off. It is always saved and loaded when these methods are used.
The two code fragments that follow are equivalent. The first sets all the ”Use…”
properties individually and the second sets them all at once.
’Set Seperately
oXMLParameters.UseCategories = True
oXMLParameters.UseRooms = True
oXMLParameters.UseProviders = True
oXMLParameters.UseNoDropAreas = True
’Set all at once
Call oXMLParameters.UseAllCollections(True)
The second code fragment is just easier to read and more compact. If some collections
are to be saved and not others, the ”Use…” properties must to be set separately.
The file format is a markup language. The file uses tags like HTML and XML. Each
element in a collection is saved, wrapped in its property name. This makes the file
easier to read than binary file. It may also be edited, if need be. Since the file is text,
other programs may be created to read, modify, or save schedules. An auxiliary
application may be created that generates a GbSchedule file that is read into the
GbSchedule ActiveX control. An example of the file tags is displayed here. The example
is a file fragment of that describes one appointment.
<Appointment>
  <Alarm>False</Alarm>
  <BackColor>16777215</BackColor>
  <BlackOut>False</BlackOut>
  <Category>Category1</Category>
  <DisplayText>qwe</DisplayText>
  <ForeColor>0</ForeColor>
  <Id>0</Id>
  <ItemData>0</ItemData>
  <StartDate>1/2/02</StartDate>
  <Length>90</Length>
  <MaxLength>-1</MaxLength>
  <MinLength>-1</MinLength>
  <Priority>0</Priority>
  <ReadOnly>False</ReadOnly>
  <Room>Room1</Room>
  <StartTime>10:00:00 AM</StartTime>
  <ScheduleCategories>
  </ScheduleCategories>
</Appointment>
http://www.purepage.com