Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
a_f:a:display_question [2022/09/01 01:23] – removed - external edit (Unknown date) 127.0.0.1a_f:a:display_question [2025/03/05 05:55] (current) – [Example] sean
Line 1: Line 1:
 +{{tag>Index Action Action_List Process UI}}
 +====== DISPLAY QUESTION ======
 +
 +This action displays a question to the user and waits for the reply. The string specified in the action identifying a question is displayed together with the Yes, No and Cancel buttons. 
 +
 +===== Syntax =====
 + 
 +      ''DISPLAY QUESTION''
 +      ArithmeticExpression()
 +      [ 
 +        ''MTITLE'' <STRING_LITERAL>
 +      ]
 +      [
 +        ''YESNAME'' <STRING_LITERAL>
 +      ]
 +      [
 +        ''NONAME'' <STRING_LITERAL>
 +      ]
 +      
 +where 
 +  - ArithmeticOperation is the operation that produces a string (usually just a string literal).
 +  - MTITLE:  optional title of the window
 +  - YESNAME: optional name of the "Yes" button (default is Yes)
 +  - NONAME:  optional name of the No button (default is No)
 +
 +===== Example =====
 +
 +<code aim>DISPLAY QUESTION 'Do you want to print out a receipt?' YESNAME 'I do' NONAME 'I do not' </code>
 +
 +The reply of the user can be checked using the Reply attribute of the predefined object Question, for example:
 +
 +<code aim>IF Question.Reply = 'Yes' THEN ... </code>
 +
 +