Comsoft7  BHT Calendar Holiday Class and Templates

BHT is a set of classes and template wrappers designed to easily add Holidays, Week Numbers, and Full and New Moon information to any Calendar, scheduling, or app as needed.  BHT automatically includes File and Queue Locking with a Critical Section in Clarion Versions 6.x.  It should work with C4 - C6x, Legacy and ABC.

Simply add the global extension to activate the classes, and add the code templates as needed. You can handcode the classes easily by following the prototype information.  2 Procedure extension templates have been added for your convenience.  BHTProc - 'BHT Calendar Holidays Proc Ext' Includes prompts to set the default flags for the holidays and use the IsHoliday method. It also has an embed point where you can use your own variables to change them. They can be changed dynamically at runtime, and the next usage will reload the changed holiday schedule. BHTProc can also integrate automatically (With a checkbox) with BST Wall Calendar and Weekly reminder.  BHTProcVar, 'BHT Cal Holidays Proc Add Vars' extension adds local variables that you may need when using the code templates or methods.  BHT Online Help

BHT uses Country Codes in the Master Holiday File.  A free Country Code File is included, that is freely downloadable on Ben Brady's Website.  http://www.clariondeveloper.com  It is being included with his permission.  The country code is used as a filter when looking at dates to see if they are a holiday.  A flag is set for the class, telling it which country to use for determining the holidays.

A generic ** country code is used for Holidays that may appear in all countries , such as New Years Day and Christmas, etc. A flag is used to determine if you want to use them along with your country code holidays.

Click for Larger Image