When you open a NAV application object in the designer and review its code, function names are probably among the first things you notice. Code is structured in blocks with function headers clearly highlighted in bold font. But if you try to change a function's declaration—for example, change its name or add a parameter—you will see that the line with the function declaration is not editable.
Function names, return types, and parameter lists are accessed through a separate editor, and cannot be modified in the main code editor window.
In the next example, we will create a simple function to illustrate the process of declaring C/AL functions. This is a slightly modified version of the previous Hello World example. Now, we will not show the message in the standard codeunit trigger, but delegate the greeting to a local function instead...