GetSelectedDate

Description

Retrieves the selected date.

Applies to

MonthCalendar control

Syntax

controlname.GetSelectedDate ( d )

Argument

Description

controlname

The name of the MonthCalendar control for which you want to get the selected date

d

A date value returned by reference that indicates the date selected

Returns

Integer. Returns 0 for success and one of the following negative values otherwise:

Usage

If a range of dates is selected, GetSelectedDate returns -1 and retrieves the earliest selected date.

Examples

Example 1

This example retrieves the selected date into seldate:

integer li_return
Date seldate

li_return = mc_1.GetSelectedDate(seldate)

See also