## Dialog, Dialog Function

Dialog(DialogRecord)

Returns a value corresponding to the button the user chooses.

The Dialog() function is used to display the dialog box specified by DialogRecord . DialogRecord is the name of the dialog and must be defined in a preceeding Dim statement.

The return value or button:

-1 = OK button

0 = Cancel button

> 0 A command button where 1 is the first PushButton in the definition of the dialog and 2 is the second and so on.

More:

Example: