Skip to main content
24-Ruby IV
March 1, 2013
Solved

Pop-up window

  • March 1, 2013
  • 3 replies
  • 2223 views

In my calculations at a certain time occurs a pop-up window with a specific question:

Pic_2.png

Is it possible to create a pop-up window like the following type (answer "Yes" must return "1" and "No" return "0" into variable "Question")?

Pic_1.png

Best answer by RichardJ

Here you go.

3 replies

RichardJ19-TanzaniteAnswer
19-Tanzanite
March 1, 2013
VladimirN24-Ruby IVAuthor
24-Ruby IV
March 2, 2013

Thank you, Richard!

So the script code should look like this:

Pic_3.PNG

19-Tanzanite
March 2, 2013

Yes. The key points are that the MsgBox must be called as a function, with the arguments in parentheses, so that it can return a value, and that magic number, "36". The number determines the appearance of the MsgBox, in this case with "Yes" and "No" buttons, and a question mark icon.