Home » Microsoft » MB-500 » You are a Dynamics 365 Finance developer. You create an integer variable named totalSales.
You are a Dynamics 365 Finance developer. You create an integer variable named totalSales.
You need to display the value from totalSales in an info statement.
Which three code segments can you use? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
A. Option A
B. Option B
C. Option C
D. Option D
E. Option E
Correct Answer: ACD
Explanation/Reference:
Explanation:
A: int2Str converts an integer to the equivalent string.
C: any2Str converts an anytype value to a str value. The anytype data type is a placeholder for any data type.
D: Example:
void MyMethod()
{
for (int i = 0; i < 10; i++)
{
info(strfmt(“i is %1”, i));
}
}
Reference:
https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-ref/xpp-data-primitive#anytype
https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-ref/xpp-variables-data-typeshttps://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-ref/xpp-data-primitive#anytype