ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Calendar functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
<Calendar>.Select (Function)
In french: <Calendrier>.Select
Returns the date selected in a Calendar control.
Example
// Displays the selected date in a trace window
Trace(CAL_Calendar1.Select())
// Retrieves the date in an edit control
EDT_Date = CAL_Calendar1.Select()
Syntax
<Result> = <Calendar control>.Select([<Index of the selected element>])
<Result>: Character string or Date variable
Day selected in the Calendar control. This parameter has the following format: "YYYYMMDD". For example, if the selected day is November 12 2008, <Result> is equal to "20081112".
<Calendar control>: Control name
Name of Calendar control used.
<Index of the selected element>: Optional integer
Rank of selection for a multi-selection calendar.
If this parameter is not specified, the date corresponding to the first selected element is returned.
WEBDEV - Server codeWEBDEV - Browser code The Calendar control is not multi-selection. If this parameter is specified, only index 1 is valid and the result will correspond to the result of the Value property.
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
Component: wd300obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/26/2023

Send a report | Local help