Accept Method

Class

DialogBox.

Action

Closes the dialog box and accepts the values specified there.

Syntax

dialogbox.Accept( )

Notes

Accept closes a dialog by clicking the OK button, thus accepting the values specified in the dialog box. To use a different button for a particular dialog box, define a variable named wAcceptButton (of type WINDOW) in the dialog declaration, and set it to the name of the button to click.

Example

MessageBox.Message.Verify (sMessage)
MessageBox.Accept ()