Home » Microsoft » MB6-704 » Which two elements should you identify?
You need to identify which elements a job can contain.
Which two elements should you identify? Each correct answer presents part of the solution.
A. Embedded methods
B. Variable declarations
C. Class instantiations
D. Events
Correct Answer: AB
Explanation/Reference:
A: You can declare local functions inside a method or a job in X++. A local function can contain code that would otherwise have to be duplicated in two or more places within your method.
B: The following X++ job demonstrates that the print statement automatically converts any data type to a string. To create a job in the AOT, right-click the Jobs node, and then click New Job.
static void PrintJob2(Args _args)
{ str s1 = "Hello";
int n2 = 42;
utcDateTime udt3 = DateTimeUtil::utcNow();
Dialog dlog4 = new Dialog();
Etc.
Reference: Local Functions [AX 2012]; Print Statements [AX 2012]