PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Indicates that a day (or a list of days) is a bank holiday. This bank holiday can correspond to a fixed date for a year, to a fixed date repeated every year or to a constant.
Note: These bank holidays will be used:
  • by the Calendar control.
  • Versions 15 and later
    WINDEV by the Organizer control.
    New in version 15
    WINDEV by the Organizer control.
    WINDEV by the Organizer control.
  • Versions 16 and later
    WINDEVWEBDEV - Server code by the Scheduler control.
    New in version 16
    WINDEVWEBDEV - Server code by the Scheduler control.
    WINDEVWEBDEV - Server code by the Scheduler control.
    WINDEVWEBDEV - Server codeAndroidiPhone/iPadPHP by the Scheduler control.
To find out whether a day is a bank holiday by programming, all you have to do is use BankHoliday.
Versions 15 and later
WINDEVJava This function is now available for the Java applications.
Android This function is now available for the Android applications.
New in version 15
WINDEVJava This function is now available for the Java applications.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
Android This function is now available for the Android applications.
Versions 16 and later
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 16
Universal Windows 10 App This function is now available for the Windows Phone applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 18
Android Widget This function is now available in Android Widget mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Android Widget This function is now available in Android Widget mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Delete all bank holidays
BankHolidayDeleteAll()
// Initialize the 11 bank holidays common to the French regions and to the French territories
BankHolidayAdd("0101") // 1st of January
BankHolidayAdd(bhEasterMonday) // Easter Monday
BankHolidayAdd("0501") // 1st of May
BankHolidayAdd("0508") // 8th of May
BankHolidayAdd(bhAscensionDay) // Ascension day
BankHolidayAdd(bhWhitMonday) // Whit Monday
BankHolidayAdd("0714") // 14th of July
BankHolidayAdd("0815") // 15th of August (Assumption)
BankHolidayAdd("1101") // All Saints' Day
BankHolidayAdd("1111") // 11th of November
BankHolidayAdd("1225") // Christmas

// Add 2 additional bank holidays for the regions of Moselle and Alsace
BankHolidayAdd("1226" + CR + bhGoodFriday)
Syntax
BankHolidayAdd(<New Bank Holidays>)
<New Bank Holidays>: Character string or Character String constant
Can correspond to:
  • A date on 4 digits (in MMDD format) to define a bank holiday whose date is fixed over the years ("1225" for Christmas for example).
  • A date on 8 digits (in YYYYMMDD format) to define a bank holiday for a specific year ("20080808" for the 8th of August 2008 for example).
  • A date in the following format: <Month>_<Week Number>_<Day Number in the Week>. For example: 11_2_3 for the 2nd Wednesday of November.
  • One of the following constants:
    bhAscensionDayAscension day.
    Note: The corresponding date corresponds to Easter + 39 days.
    bhEasterDayEaster Sunday.
    Note: The corresponding date can be returned by Easter.
    bhEasterMondayEaster Monday.
    Note: The corresponding date corresponds to Easter + 1 day.
    bhWhitMondayWhit Monday.
    Note: The corresponding date corresponds to Easter + 50 days.
    bhGoodFridayGood friday.
    Note: The corresponding date corresponds to Easter - 2 days.
  • a combination of the above-mentioned possibilities. The days found in this list must be separated by a CR character (carriage return).
Remarks
  • This function is used to customize the application according to the country and/or to the local regulations.
  • This function has a global effect and it must be used at the beginning of the application.
  • BankHoliday can be used after the call to BankHolidayAdd.
Related Examples:
The Calendar control Unit examples (WINDEV): The Calendar control
[ + ] Four methods for using the Calendar control:
- Using the Calendar control found in the WINDEV toolbar
- Using CalendarOpen and CalendarPicker as well as CalendarSelect (multi-selection)
- Using ..CalendarButton
- Using BankHolidayAdd
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Windows Mobile wp230obj.dll
Java wd230java.jar
Linux wd230obj.so
Android wd230android.jar
Minimum required version
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment