Home » Microsoft » MB6-704 » Which communication statement should you use?
You need to develop a solution to process accounts receivable. The solution must halt the process and display a message if the process starts before the last day of the month. The process must resume once the user acknowledges the message.
Which communication statement should you use?
A. Warning ("This process should only be started on the last day of the month");
B. Info ("This process should only be started on the last day of the month");
C. Box: warning ("This process should only be started on the last day of the month");
D. Error ("This process should only be started on the last day of the month");
E. Print "This process should only be started on the last day of the month";
Correct Answer: C
Explanation/Reference:
You can display a message in a modal dialog box by using the Box class.
Box class static method name: warning
The OK button is the only one displayed in the dialog box. Use this dialog box for a warning message.
Example: diagBut = Box::Warning( strMessage,
DialogButton::No, // Initial focus is on the No button. strTitle);
Reference: Displaying a Message Box [AX 2012]
Incorrect:
Not B: The info method displays text in the Infolog window. Not E: X++ provides a print statement that allows you to display text or selected results in a temporary window. The messages are displayed in a Print window that appears when the first print statement is executed.