Ok - cDbCJGridPromptList
Can be sent to a 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 prompt list and processes your selection or selections. It sets pbCanceled to False and places the selected row(s) index(es) in the pSelectedRows property. Depending on the update mode (peUpdateMode), it will call OnMoveValueOutByRelational (umPromptRelational), 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 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 oSelList
End_Procedure
End_Object