Ok - cMonthCalendarPrompt
Can be sent to a calendar prompt list to close itself and update the selection(s)
Type: Procedure
Syntax
Procedure Ok
Call Example
Send Ok
Description
The Ok message closes the calendar prompt list and processes your selection or selections.
It sets pbCanceled to False and sets the selected date or date range. Depending on the update mode (peUpdateMode), it will call OnMoveValueOutByValue (umPromptValue), OnMoveValueOutByCustom (umPromptCustom) or nothing (umPromptNonInvoking).
If the update mode is an invoking mode (i.e., it's not umPromptNonInvoking) and an update callback message has been set in phmPromptUpdateCallback, it will send this callback to the invoking object.
If you wish to close cancel the calendar prompt list, send Cancel. Actually, if the prompt list is closed in any fashion other than sending Ok, it is cancelled. For example, sending Close_Panel to the prompt list's container panel is equivalent to sending Cancel to the prompt list.
Object oOk_bn is a Button
Set Label to "&Ok"
Set Location to 116 130
Set peAnchors to anBottomRight
Procedure OnClick
Send Ok To oCalendar
End_Procedure
End_Object