1Z0-141 · Question #96
You designed a standard toolbar to accompany a number of forms so the code behind the buttons is written as generically as possible. One of the features of this toolbar is that the buttons are…
The correct answer is D. Form-level Key triggers that call the generic procedures and item-level When-Button- Pressed. See the full explanation below for the reasoning.
Question
You designed a standard toolbar to accompany a number of forms so the code behind the buttons is written as generically as possible. One of the features of this toolbar is that the buttons are synchronized with the state of the form. To achieve this functionality, you wrote generic procedures that are placed in an attached library and are called from various triggers. For example, if the form is in Enter-Query mode, the procedure set_enter_query_mode will disable the Enter Query button, change the icon for the Exit button, and modify its Tooltip to read "Cancel Query" rather than "Exit". What must you code to support this approach?
Options
- AForm-level When-Button-Pressed triggers for each button to call the generic procedures. For
- BItem-level Key triggers for each button as well as item-level When-Button-Pressed triggers for
- CBlock-level Key triggers that call the generic procedures and item-level When-Button- Pressed
- DForm-level Key triggers that call the generic procedures and item-level When-Button- Pressed
How the community answered
(28 responses)- A18% (5)
- B7% (2)
- C4% (1)
- D71% (20)
Community Discussion
No community discussion yet for this question.