Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


In Dialog Editor, which button was pushed?

Keywords:  Dialog editor ButtonPushed 

How do I tell which button was pushed by the user when exiting a dialog box generated by the Dialog Editor?

The Dialog box returns the value of the selected push-button. The Dialog Editor sets the variable by generating the following line for you.

        ButtonPushed=Dialog("MyDialog")

 Use ButtonPushed as your variable.  

        ;i.e.
        If ButtonPushed == 1 then Run("program.exe", " ")

You can of course, change the variable to something which has more meaning in your script.
More information is available in the WinBatch User's Guide.


Article ID:   W12837
Filename:   Dialog Editor which button was pushed.txt