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

Documentation / Mathematica / Built-in Functions / Programming / Evaluation Control /

ToString

FilledSmallSquare ToString[expr] gives a string corresponding to the printed form of expr in OutputForm.

FilledSmallSquare ToString[expr, form] gives the string corresponding to output in the specified form.

FilledSmallSquare ToString supports the same set of options as OpenAppend, with default settings FormatType -> OutputForm, PageWidth -> Infinity, TotalWidth -> Infinity.

FilledSmallSquare ToString uses any relevant definitions given for Format and MakeBoxes.

FilledSmallSquare See Section 2.9.3.

FilledSmallSquare See also: ToBoxes, ToExpression, HoldForm, WriteString, SymbolName.

FilledSmallSquare New in Version 1; modified in 3.

Further Examples