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

DialogReturn

DialogReturn[expr]
closes a dialog window, returning the expression expr from the dialog.
DialogReturn[]
closes a dialog window, returning Null.
New in 6