Microsoft
MB-500 · Question #28
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?…
The correct answer is A. Option A C. Option C D. Option D. 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 for (int i = 0; i < 10; i++) info(strfmt("i is %1", i))…
Develop business logic
Question
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.
Exhibit
Options
- AOption A
- BOption B
- COption C
- DOption D
- EOption E
How the community answered
(42 responses)- A86% (36)
- B10% (4)
- E5% (2)
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 for (int i = 0; i < 10; i++) info(strfmt("i is %1", i)); https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-ref/xpp-variables-data- https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-ref/xpp-data- primitive#anytype
Topics
#X++ syntax#info statement#integer to string conversion#basic output
Community Discussion
No community discussion yet for this question.
