Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Dynamic Interactivity > Custom Interface Construction > Dialog Boxes > DialogInput >

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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF