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
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Question | Question text that will contain the modal window | Robin.String | Yes | |
Window title | Modal window name | Robin.String | No | |
Results | ||||
Result | Logical variable (boolean) that will store the user’s answer (Yes / No) to the question | Robin.Boolean | true |
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
- Create an "Answer" variable with type "Boolean" that will contain the user's answer to the question.
- Open the "Dialogs" action group.
- Move the "Question dialog" action into the Studio workspace and set the action parameters.
- Launch the robot using the "Start" button in the top panel.
- A dialog box appears with choices for answering the question.
- Click the "Yes" button.
- 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.
Обзор
Инструменты контента