This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

DialogInput

DialogInput[expr]
interactively puts up expr as a dialog notebook, waits until a DialogReturn[e] is evaluated from within it, and then returns the result e.
DialogInput
sets up local variables x, y, ... in expr.
  • The Mathematica kernel in which DialogInput is evaluated will block until the DialogReturn in the dialog is evaluated.
Use a dialog input window to set a variable:
Enter some text in the field and click Proceed to set :
Set to True or to False, depending which button is clicked:
This uses DialogReturn to return from the dialog notebook:
DefaultButton can be used instead of an explicit DialogReturn:
CancelButton implicitly uses DialogReturn:
Input puts up a special dialog window for entering an expression:
InputString puts up a special dialog window for entering a string:
New in 6