Q: How do I reference SQR global variables inside of a local procedure?

A: Include an underscore between the # or $ and the variable name. For example, use #_current-line instead of #current-line .