BUILT-IN MATHEMATICA SYMBOL

DialogSymbols

DialogSymbols
is an option for Dialog that gives a list of symbols whose values should be localized in the dialog.

DetailsDetails

  • specifies that x, y, ... should have local values for the duration of the dialog.
  • defines initial values for variables.
  • In addition to any symbols you specify, Dialog always uses local values for $Epilog, $Line, and $MessageList.
  • The DialogSymbols option sets up local values in a dialog in the same way that a Block enclosing the dialog would.

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

Start a dialog with x, a, and b localized:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
(Dialog) Out[2]=
In[3]:=
Click for copyable input
(Dialog) Out[3]=
In[4]:=
Click for copyable input

The values x, a, and b are not defined outside the dialog since they were localized:

In[5]:=
Click for copyable input
Out[5]=
New in 2
New to Mathematica? Find your learning path »
Have a question? Ask support »