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

Gravitybox Schedule Primer
Page 231 
1998-2004 Gravitybox Software LLC
ValidateAdd
Event ValidateAdd(Index As Long)
This event is raised after the BeforeAdd event but
before the AfterAdd event. It may be used to set
information for appointments before the properties
dialog is displayed.
ValidateAppointment
Event ValidateAppointment(StartDate As
Date, Room As Long, StartTime As Date,
ApptLength As Long, DisplayText As
String, Subject As String, Priority As
Long, Alarm As Boolean, Category As
String, Provider As String, GroupId As
String, UniqueKey As Long, Cancel As
Boolean)
This event is raised from the ScheduleProperties
control just before a save is performed. It allows you
to verify and change information about the
appointment before this information is saved to the
main schedule. You may cancel the save by setting
the Cancel parameter to true.
ValidateDelete
Event ValidateDelete(Index As Long)
This event is raised after the BeforeDelete event but
before the AfterDelete event. It may be used to
remove appointments from a database if necessary.
The BeforeDelete event is raised to allow you to
change the prompting text if necessary. You do not
want to remove appointment from your database
here, since the user may choose NOT to remove the
appointment when prompted. After the user is
prompt and he chooses to remove the selected
appointment the ValidateDelete event is raised with
the Index of the appointment in the ScheduleItems
collection. You may not cancel the delete at this
point. This event is raised so that clean-up code can
be added. The item to be removed is still in the
ScheduleItems collection at this point. When the
AfterDelete event is raised the item is no longer in
the collection.
http://www.purepage.com