Question: 1) The following code is a good example for understanding data types. Take a look at the following code and address the questions: The following
1) The following code is a good example for understanding data types. Take a look at the following code and address the questions:
The following variables are created:
1.Name DataType Length
LoopNo Integer
YesOrNo Boolean
Amount Decimal
When Was It Date
What Time Time
Description Text 30
Code Number Code 10
Color Option
Note: For datatype Option OptionString values need to be provided. Here they are Red,Orange,Yellow,Green.
2) What message does each of these lines show when the code is executed?
Code Example
MESSAGE('The value of %1 is %2','LoopNo',LoopNo);
MESSAGE('The value of %1 is %2','YesOrNo',YesOrNo);
MESSAGE('The value of %1 is %2','Amount',Amount);
MESSAGE('The value of %1 is %2','When Was It',"When Was It");
MESSAGE('The value of %1 is %2','What Time',"What Time");
MESSAGE('The value of %1 is %2','Description',Description);
MESSAGE('The value of %1 is %2','Code Number',"Code Number");
MESSAGE('The value of %1 is %2','Color',Color);
Understand the DATE2DMY function. Write a code that displays the month of the WORKDATE
3) True of False
a) C/AL code must be indented properly to work.
b) When a CONFIRM function is used, a user response is required.
c) Documentation can be added in-line to C/AL code
d) WORKDATE value can be set to a different value from the system date
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
