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 [2023/05/09 01:33] seana_f:a:display_question [2025/03/05 05:55] (current) – [Example] sean
Line 5: Line 5:
  
 ===== Syntax ===== ===== Syntax =====
- +  
-''DISPLAY QUESTION'' ArithmeticOperation() [ ''MTITLE'' <STRING LITERAL> ] +      ''DISPLAY QUESTION'' 
- +      ArithmeticExpression() 
-where ArithmeticOperation is the operation that produces a string (usually just a string literal). +       
 +        ''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 ===== ===== Example =====
  
-<code aim>DISPLAY QUESTION 'Do you want to print out a receipt?' </code> +<code aim>DISPLAY QUESTION 'Do you want to print out a receipt?' YESNAME 'I doNONAME 'I do not</code>
- +
-''MTITLE'' key can be used to specify the title of the message box.+
  
 The reply of the user can be checked using the Reply attribute of the predefined object Question, for example: The reply of the user can be checked using the Reply attribute of the predefined object Question, for example:
  • Last modified: 2023/05/09 01:33