Question dialog Version 16 (Net)

Action group: Dialogs


Description

This action is designed to display a question to the user in a modal window with "Yes" and "No" answer buttons.

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
QuestionQuestion text that will contain the modal windowRobin.String
Yes
Window titleModal window nameRobin.String
No
Results
ResultLogical variable (boolean) that will store the user’s answer (Yes / No) to the questionRobin.Booleantrue

Special conditions of use

The robot algorithm will continue after the modal window is closed by the user.

Example of use

Task

Display a dialog box with a question to the user. The name of the dialog box is "Save file". Question - "Save document?".

Solution

Add a question. 

Implementation

  1. Create an "Answer" variable with type "Boolean" that will contain the user's answer to the question.

  2. Open the "Dialogs" action group.
  3. Move the "Question dialog" action into the Studio workspace and set the action parameters.
     

  4. Launch the robot using the "Start" button in the top panel.
  5. A dialog box appears with choices for answering the question. 
  6. Click the "Yes" button. 
  7. The variable contains the value True after an affirmative response from the user. 

Result

The program robot completed successfully, displaying a question to the user in a modal window.

  • Нет меток