AskDisplay

AskDisplay[expr]

is a construct for use inside AskFunction that displays the result of evaluating expr in the context of the AskFunction.

Details

  • AskDisplay generates a temporary display that is dismissed by clicking a button.
  • Before AskDisplay[expr] displays a result, any inner Ask and related functions will interactively ask for values if the values are not already known.

Examples

open allclose all

Basic Examples  (2)

Use AskDisplay to display messages:

Messages can themselves contain Ask objects to reference known values:

Generalizations & Extensions  (1)

You can use AskTemplateDisplay if you want to use a StringTemplate or a function as the body:

Wolfram Research (2016), AskDisplay, Wolfram Language function, https://reference.wolfram.com/language/ref/AskDisplay.html.

Text

Wolfram Research (2016), AskDisplay, Wolfram Language function, https://reference.wolfram.com/language/ref/AskDisplay.html.

CMS

Wolfram Language. 2016. "AskDisplay." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AskDisplay.html.

APA

Wolfram Language. (2016). AskDisplay. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AskDisplay.html

BibTeX

@misc{reference.wolfram_2024_askdisplay, author="Wolfram Research", title="{AskDisplay}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/AskDisplay.html}", note=[Accessed: 09-October-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_askdisplay, organization={Wolfram Research}, title={AskDisplay}, year={2016}, url={https://reference.wolfram.com/language/ref/AskDisplay.html}, note=[Accessed: 09-October-2024 ]}