DEFINE
defines internal procedures, variables, and macros (optional) NEW
TIME-TO-PERIOD
takes a period and checks the time to see if its in the period, if not, it
changes the time to the start time of the period
PERIOD-TO-TIME
loads a period-catalog BUFFER corros. to the time
COURSE-TO-TIME
returns stu-schd given date, time, and student _Check_The_Schedule's_Building_
On_Return_, it may be different than what you expect, this call will find
courses in other bldgs
COURSE-TO-PERIOD
this function finds the stu-schd at the same TIME as the period that you pass.
It does NOT check to see if the stu-schd is in the same building as the period
you pass. If there is a no course for this student in the period's building
at this time, OR if there is a scheduling conflict, the function may return a
stu-schd from a different building (it always returns the first record that it
sees) TO AVOID THIS PROBLEM, do not schedule conflicts, and recheck
the building of the schedule on return, then resync the period
PERIOD-TO-COURSE
loads a period-catalog for the stu-schd and date