December 2018
Beginner
210 pages
5h 7m
English
A global variable is available throughout the object where it is declared, but is not visible to other objects. Global variables are declared in the C/AL Globals window. This window is already familiar to us, since functions are declared through the same interface. Global variables are accessed in the Variables tab.
To demonstrate the use of global variables, we will modify one of the previous examples and rewrite the function, calculating the edit distance. The function will be altered to use global variables instead of passing strings as parameters. For this example, we will need two global variables. Create a new codeunit and declare these two variables:
GlobalString1 : Text;GlobalString2 : Text;
Now, let's see how the ...
Read now
Unlock full access