Another version of my multiple choice question I posed here.
Cust.INSERT; // This duplicate statement has been put here intentionally
IF CODEUNIT.RUN(50000) THEN
MESSAGE('LASTERRORTEXT: %1', GETLASTERRORTEXT);
Which error/message will occur when codeunit 50001 is being executed?
- 'LASTERRORTEXT: The Customer already exists. Identification fields and values: No.='''
- 'The Customer already exists. Identification fields and values: No.='''
- Variable Cust in codeunit 50000 is linked to the Customer table.
- As before of course you're free to test it in NAV, but first give it a try "from the bare head".