The variable of the Calendar control corresponds to the selected date (if the control is multi-selection or with period selection, the variable corresponds to the first selected date). This date uses the format specified in the "Stored format" control found in the "General" tab of the control description. This variable is a string.
The Calendar control can be handled by programming with the WLanguage functions (Calendar functions and functions for managing the bank holidays) and with the WLanguage properties. The Calendar control is associated with several WLanguage processes.
假日添加 is used to define the bank holidays displayed in a calendar. This function allows you to define the list of bank holidays that will be used. This function allows you to customize the bank holidays according to the country and to the local regulations. This function must be used at the beginning of the application because it has a global effect on the application.
To retrieve the selected dates, use the CalendarXXX functions of WLanguage.
Managing the period selection
To allow the period selection, "Period selection" must be checked in the "Details" tab of the description window of the control.
At run time, to select a period, all you have to do is click the Calendar control: the first click is used to select the start date of the period, the second click is used to select the end date of the period.
Functions for managing the bank holidays
Functions for managing the Calendar control
J'accepte les termes de la licence
All you have to do is configure your product as follows: