jf-roku/source/utils/globals.brs
2019-04-20 17:28:28 -05:00

16 lines
338 B
Plaintext

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