This was from one of the original BrightScript Reference Manuals (PDF):
"BrightScript does not support global variables. Except, there is one hard-coded global
variable "global" that is an interface to the global BrightScript Component. The global
component contains all global library functions. "
I don't know if that made it into the online version of the documentation or not.
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.