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

Gravitybox Schedule Primer
Page 77 
1998-2004 Gravitybox Software LLC
Chapter 7
Area Availability
On a schedule, it may be important to check for the visibility of items. Also sometimes
you may need to make items visible, if they are not already so. There exist a variety of
methods that allow the visibility any item of a schedule to be checked and set. An item
may be defined as a date, room, time, or appointment. There are methods that may be
used to determine the visibility of any date or time. In addition, if one of them is not
visible, it may be made visible with another function call. These methods may be used
to scroll the viewable window of a schedule to a particular place.
Though the defined methods in this chapter may be used to determine area availability,
there is an easier way. The methods give you the power to perform manual checks on
arbitrary area. If you wish to merely find the next available slot starting at some location
you may use the “GetNextFreeSlot” method. This functionality is defined in the next
chapter.
IsDayVisible
In the course of building and maintaining a schedule the
visibility of particular date will eventually need to be known.
This information may be obtained with a simple method call.
Given a particular date, this method returns a Boolean value that determines the
visibility state of the specified date. If the date is only partially visible, this method
returns false. The start edge to the end edge of the date must be in the view port for a
true return value.
If Not Schedule1.IsDayVisible(#6/3/2002#) Then
  ....
  'What to do if NOT visible
  ....
End If
Quick Tip
You may check if a day is in the
viewable area by using the
“IsDayVisible” property.
http://www.purepage.com