DialogBox.
Closes the dialog box and accepts the values specified there.
dialogbox.Accept( )
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.
MessageBox.Message.Verify (sMessage) MessageBox.Accept ()