DateSelected

Description

Occurs when the user selects a date using the mouse.

Event ID

Event ID

Objects

pbm_mcdatesel

MonthCalendar


Arguments

None

Return Values

Long.

Return code: Ignored

Usage

This event is similar to DateChanged, but it occurs only when the user has selected a specific date using the mouse. The DateChanged event occurs whenever the date changes -- when a date is selected using the mouse, when the date is changed in a script, and when the user uses the arrow key on the keyboard to select a different date or the arrow on the control to scroll to a different month.

Examples

The following script in the DateSelected event writes the date the user selected using the mouse to a single-line edit box:

date dt_selected
integer li_ret
string ls_date

li_ret = GetSelectedDate( dt_selected)
ls_date = string(dt_selected)
sle_2.text = ls_date

See also

DateChanged