|
|
|
|
- Range selection
- Changing a time period in a Calendar, Organizer or Scheduler control
- Special cases
EndDate (Property) In french: DateFin
The EndDate property is used to get and change the selected time period end date: - in a Calendar control,
  in a Scheduler control.
// Retrieve the selected period (Calendar control) NbDays is int NbDays = DateDifference(CAL_Calendar1.StartDate, ... CAL_Calendar1.EndDate) + 1 Info("Selected time period: from " + ... DateToString(CAL_Calendar1.StartDate) + ... " to " + DateToString(CAL_Calendar1.EndDate) + ... " which means " + NbDays + " days")
Syntax
Finding out the end date of the period Hide the details
<End date> = <Control used>.EndDate
Modifying the end date of the period Hide the details
<Control used>.EndDate = <New date>
<Control used>: Control name Name of the control used:- Calendar control,
  Scheduler control.
<New date>: Character string or Date variable End date of the period to select in the control. - In a Calendar control, this date is in "YYYYMMDD" format.
Remarks Range selection To select a period : - in a Calendar control, " Range selection" must be selected in the "Details" tab.
Changing a time period in a Calendar, Organizer or Scheduler control To change the start date of a selected time period, specify the start date ( StartDate property) and the end date ( EndDate property). The modification of the start date: - the end date is automatically deselected.
- the end date has to be selected (programmatically or by clicking a control date).
To change the end date of a selected time period, simply use the EndDate property: the time period changes automatically.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|