Dialog, Dialog Function

Dialog(DialogRecord)

This function returns a value corresponding to the button the user chooses.

You can use the Dialog() function to display the dialog box specified by DialogRecord. DialogRecord is the name of the dialog box and must be defined in a preceding Dim statement.

The return value or button:

-1 = OK button

0 = Cancel button

A number greater than 0 (zero) = A command button where 1 is the first PushButton in the definition of the dialog box, 2 is the second and so on.

Related Topics:

Dialog Support

Statements and Functions Used in Dialog Functions

More:

Example - Dialog Function