Reference > SelectionsCollection Object > SelectionsCollection Methods > Add Method (SelectionsCollection) |
Add Method (SelectionsCollection)
Adds a date in the SelectionsCollection. The Selections collection is 1-based. A date can be added to the Selections collection by selecting dates in the calendar through keyboard/mouse, or by using the Add method at run time if the MultiSelect property is set to 1-Simple. Once a date is appended to the Selections collection, it appears as selected in the calendar control. The dates are added to the Selections collection and automatically sorted in ascending order.
object.AddDate
date is required: a date to select in the calendar.
None
Adding a date that already exists in the Selections collection will not cause an error to occur. However, adding a date not allowed to select specified with the SelectWhat property, will invoke a trappable error
See Also
Item Property (SelectionsCollection)
Count Property (SelectionsCollection)
SelectWhat Property (TDBCalendar)