See all articles from QL Report v3 n6
“What are local variables, anyway?” This was one of the questions I asked myself when I first read my QL USER GUIDE. Of course, I didn’t know what a PROCedure was either. Soon I discovered that I had been using global variables all along and didn’t even know it. Local variables are used within a procedure or a function without disrupting values assigned to variables with the same name outside the procedure or function. Generally speaking, in order for a variable to become local on the QL it must be declared thus by means of the LOCal command.