Occurs when the Value property in a DatePicker control changes.
Event ID |
Objects |
---|---|
pbm_dtpvaluechanged |
DatePicker |
Argument |
Description |
---|---|
flag |
Unsigned long that defaults to 0 and can be ignored |
dtm |
The new DateTime value |
Long. Return code: Ignored.
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.
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.")