|The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....|
|Home GuiPack MiniCal Methods CheckHoliday|
|See also: CalcEasterSunday, IndicateHolidays, AddHoliday, AddRepeatHoliday|
The method CheckHoliday checks the date specified by the parameters Year, Month, and Day and returns TRUE if that day is a holiday. The variable parameter Caption returns the name of the holiday (if it has been previously defined by either the method AddHoliday or AddRepeatHoliday). The name of pre-defined holidays depend on the Language property.
Please note that the results of CheckHoliday depends on the property ShowMovableHolidays. If ShowMovableHolidays is FALSE the movable holidays are not checked (in fact, CheckHoliday returns whether a particular day would be indicated as a holiday in the calendar sheet if IndicateHolidays is TRUE, and not whether it actually is one).