![]() ![]() ![]() ![]() Gravitybox Schedule Primer
Page 208
1998-2004 Gravitybox Software LLC
As Boolean
Given a time, this method will return a Boolean value
indicating if that time is in the viewable window. A
schedule may be much larger than the viewing window.
This method can be used in conjunction with the
ShowTime method to check if a particular time is visible
and if not bring it into the viewing window.
MoveSeries
Function MoveSeries(sGroupId As String,
[lIncDates As Long], [lIncRooms As
Long], [lIncTimes As Long]) As Boolean
This method will move an entire series of appointments
at one time. You may specify a number of days, rooms,
or minutes or move the appointment series. If you wish
to move the series back in time, use a negative
increment. For example, to move series 2 days back
into the past call the method with the "lIncDates"
parameter set to -2. The dates are measured in days
and the time in minutes. If there method is successful it
will return true, otherwise it returns false.
SetMinMaxDate
Sub SetMinMaxDate(ByVal dtMinDate As
Date, ByVal dtMaxDate As Date)
This method let you set the Min-Max pairs for Date
without encountering errors. You can set the MinDate-
MaxDate pairs at the same time and not get in
intermediate error.
Example:
If the MinDate and MaxDate values are set to 1/1/78
and 2/1/79 respectively and you want to change the
MinDate and MaxDate to 6/1/78 and 7/1/78. You would
get an error when you set the MinDate to 6/1/78.
Because at this time the MaxDate is 2/1/78, the new
value of 6/1/78 for MinDate would make the MinDate
greater than the MaxDate. This is an error. With the
SetMinMaxDate method you could set both MinDate
and MaxDate at the same time and avoid this error.
Note: These properties (MinDate / MaxDate) have no
meaning if the ViewMode property is set to exclude
days.
|