DateSelected event
Description
Occurs when the user selects a date using the mouse.
Event ID
|
Event ID |
Objects |
|---|---|
|
pbm_mcdatesel |
MonthCalendar |
Parameters
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:
|
1 |
date dt_selected<br>integer li_ret<br>string ls_date<br> <br>li_ret = GetSelectedDate( dt_selected)<br>ls_date = string(dt_selected)<br>sle_2.text = ls_date |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest