jf-roku/source/utils/globals.brs

16 lines
318 B
Plaintext
Raw Normal View History

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