December 2018
Beginner
210 pages
5h 7m
English
Let's modify the codeunit so that the message to be shown to the user will be passed in the function call instead of hardcoding it in the function body itself. From the previous section, you already know how to access the list of functions. Now, there is only one function we named SayHello. Change its name to ShowMessage and close the C/AL Global window to return to the code editor.
Now, let's add a text parameter to the ShowMessage function. To access the list of function parameters, position the cursor in any line inside the function and choose the View | Locals menu option, or click Ctrl + L. This action opens a C/AL Locals window that contains local declarations for the function. In the Name field ...
Read now
Unlock full access