SetSelectedDateRange - cMonthCalendar
Used to set the date range for a multi select calendar
Type: Procedure
Parameters
| Parameter | Type | Description |
|---|---|---|
| dDate | Date | The starting date |
| dDate2 | Date | The ending date |
Syntax
Procedure SetSelectedDateRange Date dDate Date dDate2
Call Example
Send SetSelectedDateRange dDate dDate2
Description
SetSelectedDateRange is used to set the date of the calendar when used for date range selection (pbMultiSelect is True). This is used most often to set the starting date range of a calendar before the calendar control is paged.
It is your responsibility to make sure that the passed date range fits within the allowable date span of the control, which is determined by piMaxSelectedCount.
Use SelectedDate and SetSelectedDate when working with single-select calendars.