Select Method (MonthCalendar SWTDateTime)

Class

MonthCalendar and SWTDateTime.

Action

Selects a date and time.

Availability

This functionality is supported only if you are using the Open Agent.

Syntax

Select (selectedDate)
Variable Description
selectedDate The date and time to select. DATETIME.

Notes

For the SWTDateTime class, if an invalid property value is set in the Date control, then an E_INVALID_PARAMETER exception is thrown.

Example

This is a typical example using the MonthCalendar class:

MonthCalendar1.Select("2008-03-06")
The following 4Test statement is recorded when a specific date in the Java SWT Calendar control is selected and the previous month or next month button in the Calendar control is clicked.
SWTControls.PageList1.Control22.DateTimeControls.SWTDateTime1.Select("YYYY-MM-DD")
 
The following 4Test statement is recorded when a day or month or year is selected in the Date control and then the <spin up> or <spin down> button is clicked or <cursor up> or <cursor down> is pressed.
SWTControls.PageList1.Control22.DateTimeControls.SWTDateTime2.Select("YYYY-MM-DD")
 
The following 4Test statement is recorded when hours or minutes or seconds are selected in the Time control and then the <spin up> or <spin down> button is clicked or <cursor up> or <cursor down> is pressed.
SWTControls.PageList1.Control22.DateTimeControls.SWTDateTime3.Select("YYYY-MM-DD hh:mm:ss.000")