Home > Available Help Files > PC-DMIS BASIC Language > Language Reference A – Z > Dialog, Dialog Function
Current Help File: PC-DMIS Basic (View Core Help)
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.
More: