Use this procedure/function to create a message to which the user must respond with Yes or No. The message is created as a message window for the system interface.
A Yes response results in a value of 1. A No response or terminating the window without responding results in a value of zero (0).
Ask (Msgline1, Msgline2, Msgline3, Title, Defans)
Parameter |
Description |
Msgline1 |
Enter the first line of the message. The default is Yes. |
Msgline2 |
Enter the second line of message. |
Msgline3 |
Enter the third line of message. |
Title |
Enter the title of message window. |
Defans |
Enter one (1) or zero (0) to specify which button (Yes or No) should be selected as the default. The default is one (1), which makes the Yes button the default. |
This procedure requires a user response each time the script executes. Therefore, use this procedure only in scripts that execute once during entry. Do not use this procedure for scripts that execute each time a user tabs to a new field.
Note | A DAL script executes once during entry. A DAL calc executes each time the user tabs to a new field. You make the DAL script or DAL calc designation in the Properties window. |
Here are some examples:
Procedure |
Result |
Explanation |
#result =Ask ("Are you sure you made the correct entry?" , , , "Sample Message") |
1, if the user answers Yes 0, if the user answers No |
"Sample Message" is the title of the entry box. "Are you sure you made the correct entry?" is the message the user answers. |
#result =Ask ("This is line 1", "This is line 2", "Is this line 3?", "Please Respond") |
1, if the user answers Yes 0, if the user answers No |
"Please Respond" is the title of the entry box. '"This is line 1" "This is line 2" "Is this line 3?" is the message the user answers. |
© Copyright 2017, Oracle and/or its affiliates. All rights reserved. Legal Notices