MB6-890 · Question #73
You are developing a solution to insert and update records in a table named Table1. The table has the following structure: ID (Int) Description (String 60) 1 Record 1 2 Record 2 3 Record 3 4 Record…
The correct answer is C. break. See the full explanation below for the reasoning.
Question
You are developing a solution to insert and update records in a table named Table1. The table has the following structure:
ID (Int) Description (String 60) 1 Record 1 2 Record 2 3 Record 3 4 Record 4 You have the following X++ code:
Int counter = 3, maxValue = 4; Table1 table1; try { for(counter = 3; counter<6; counter++) { Table1.clear(); table1.ID - counter; table1.Description - strfmt("Record %1", counter); table1.insert(); If(Counter == maxValue) { Info(“Max value”); break; } } } catch(Exception::Error) { Info("Error"); } catch(Exception: :DDEerror) { Info("Data error"); } catch(Exception: :Break) { You need to identify the output of the X++ code, What should you identify?
Options
- Adata error
- Berror
- Cbreak
- Dmax value
How the community answered
(27 responses)- A11% (3)
- B4% (1)
- C85% (23)
Community Discussion
No community discussion yet for this question.