The Dialog Function Syntax

The syntax for the dialog function is as follows:

  1. Function FunctionName( ControlID$, Action%, SuppValue%)

    1. Statement Block

      FunctionName = ReturnValue

    End Function

All parameters in the dialog function are required.

A dialog function returns a value when you choose a command button. Enable acts on the value returned. The default is to return 0 (zero) and close the dialog box. If a non zero is assigned the dialog box remains open. By keeping the dialog box open, the dialog function allows you to do more than one command from the same dialog box.

More:

ControlID$

Action

Supp Value