ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Calendar functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
CalendarSelect (Function)
In french: CalendrierSelect
Returns the date selected in a Calendar control.
Example
// Displays the selected date in a trace window
Trace(CalendarSelect(CAL_Calendar1))
// Retrieves the date in an edit control
EDT_Date = CalendarSelect(CAL_Calendar1)
Syntax
<Result> = CalendarSelect(<Calendar control> [, <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
Business / UI classification: UI Code
Component: wd300obj.dll
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/23/2024

Send a report | Local help