Home » Microsoft » MB6-704 » What should you identify?
You are developing a solution to insert and update records in a table named Table l. Table l is structured as shown in the following table.
You have the following X++ code:
You need to identify the output of the X++ code.
What should you identify?
A. Error
B. Max value
C. Break
D. Data error
Correct Answer: B
Explanation/Reference:
The code will run fine. New lines will be inserted into the table.
Note:
* clear method
Deletes the data and the state information for a table object. When the clear method has been executed the records in the table hold NULL values.
* insert method
Executed when a new record is inserted into the table. If the record cannot be inserted, the super() call throws an exception.
Reference: Table Methods [AX 2012]; Exception Handling with try and catch Keywords [AX 2012]