Current Help System: PC-DMIS BASIC (View Core Help)

### The Dialog Function Syntax

The syntax for the dialog function is as follows:

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

Statement Block

FunctionName = ReturnValue

End Function

All parameters in the dialog function are required.

A dialog function returns a value when the user chooses 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 the user to do more than one command from the same dialog box. Dialog examples ship as part of the sample .bas programs and can be found in your install directory.

More:

ControlID$

Action

Supp Value