You have added a command button to a form that calls a codeunit when it is pressed (using RunObject). The OnRun trigger of the codeunit modifies the customer record as follows:
IF Customer.GET(CustNo) THEN BEGIN
Customer.'Chain Name' := NewChainName;
Customer.MODIFY;
END; // Other code here
When does the customer change get committed to the database?
You need to open a form to get user input. After this form runs you will use the information to generate records in several setup tables. What is the correct way to run the form from code?
Which of the following files is not contained in the three-letter language code sub-folder, found in the Microsoft Dynamics NAV client folder for each language in a multi-language installation?
Assuming that the variable WordApp has been defined with a DataType of Automation, what is the purpose of the following code?
IF ISCLEAR(WordApp) THEN
CREATE(WordApp);
In regard to the following block of code, which statement is true about performance when the code is executed?
WITH Customer DO BEGIN
// section A
IF FIND('-') THEN
REPEAT
"Credit Limit (LCY)" := 1000;
MODIFY;
UNTIL NEXT = 0;
// section B
IF FIND('-') THEN
REPEAT
"Credit Limit (LCY)" := 1000;
Ok := MODIFY;
UNTIL NEXT = 0;
END;