Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • $\begingroup$ That's a really creative idea, but it doesn't solve my problem :/ I want to be able to use the return value of this Dialog box in another function which shouldn't run before the Dialog box is closed. $\endgroup$ Commented Apr 11, 2016 at 11:16
  • $\begingroup$ @Ranza The point is that instead of my Module you can use whatever you want, if your procedure contains another dialogs, doesn't matter, it should work. Everything except the Module is just a wrapper here. $\endgroup$ Commented Apr 11, 2016 at 11:18
  • $\begingroup$ Stupid me! Indeed you're right, thank you a thousand-fold! $\endgroup$ Commented Apr 11, 2016 at 11:37
  • $\begingroup$ Very clever. This is really useful for things like auto-asking for a file name on a "MouseEntered" event or similar, too. One thing to beware of is that you really need to ask for Evaluation* before the MessageDialog pops up and adding it with With or something. I was just using this to auto-replace a label with a file name and ran into just that issue. $\endgroup$ Commented Dec 9, 2016 at 5:58
  • 1
    $\begingroup$ @MB1965 Thanks. Yes, many solutions are really tricks so one has to always be careful :) $\endgroup$ Commented Dec 9, 2016 at 9:16