WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Dialog Editor
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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
File Created: 1999:04:15:16:49:58
Last Updated: 1999:04:15:16:49:58