DialogReturn

DialogReturn[expr]

closes a dialog window, returning the expression expr from the dialog.

DialogReturn[]

closes a dialog window, returning Null.

Details

Examples

open allclose all

Basic Examples  (2)

Put up a dialog window that returns 123 when the button is clicked:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

DialogReturn[] returns Null:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]//FullForm=

Scope  (3)

Properties & Relations  (3)

See Also

DialogInput  DefaultButton  CancelButton  Exit

Tutorials

Introduced in 2007
(6.0)