jf-roku/source/utils/globals.brs
2021-07-28 06:51:15 -04:00

16 lines
340 B
Plaintext

sub initGlobal()
if m.globals = invalid
m.globals = CreateObject("roAssociativeArray")
end if
end sub
function getGlobal(key = "" as string) as dynamic
initGlobal()
return m.globals[key]
end function
sub setGlobal(key = "" as string, value = invalid as dynamic)
initGlobal()
m.globals[key] = value
end sub