Creates a generic calendar object.
This calendar object is already pre-programmed with holiday dates which are only weekend dates (Sat, Sun), Christmas and New Years day.
You can also add additional dates via the optional 'AddHols' parameter.
You can view the list of holidays between any 2 dates by executing the function
GetHolidayList(). The dates passed into the 'AddHols' parameter must be in the serial date format (Integer values).
Excel automatically passes dates entered into Excel spreadsheets in this serial date format.
This function creates an object and returns a string-key value to represent this created object.
The TAG value of the string-key returned (second part of the key) is : "GENCAL"
The C# example below contains all the sub-function calls leading up to this function call. As a result, the example can contain a lot of code.
The VB.NET, J#, C++.NET, Java, Excel VBA, Visual Basic 6 (via COM) and C++ examples below contain function code stubs for the calls leading up to this function call. However, the function call for this function is displayed.
You can easily reproduce the stub functions code from the
C# example.
Copyright (c) 2003-2007 CapeTools - All Rights Reserved.