ValueChanged

Description

Occurs when the Value property in a DatePicker control changes.

Event ID

Event ID

Objects

pbm_dtpvaluechanged

DatePicker


Arguments

Argument

Description

flag

Unsigned long that defaults to 0 and can be ignored

dtm

The new DateTime value


Return Values

Long.

Return code: Ignored.

Usage

When a user selects a date from the drop-down calendar or changes the date using the up-down control, the DateTime value selected is passed to the ValueChanged event.

Examples

This code in the ValueChanged event script displays a confirmation message to the user:

MessageBox("Start date", "You selected " + &
   String(dtm, "mmm dd, yyyy") + ".~r~n" +  &
   "If this is incorrect, please select again.")