Multiple choice

Which of the following options helps in programmatically determining the button a user pressed to respond to an alert?

  1. Use the GET_ALERT_PROPERTY function

  2. Use the GET_ALERT_BUTTON_PROPERTY function

  3. Check the value returned by the SHOW_ALERT function to see if it is 1, 2, or 3

  4. Check the value returned by the SHOW_ALERT function to see if it is ALERT_BUTTON1, ALERT_BUTTON2, or ALERT_BUTTON3

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The SHOW_ALERT function in Oracle Forms returns named constants ALERT_BUTTON1, ALERT_BUTTON2, or ALERT_BUTTON3 to indicate which button the user pressed. These constants, not numeric values 1/2/3, are the proper way to programmatically determine the user's response.