2021-06-26 10:18:09 +00:00
|
|
|
sub initGlobal()
|
2019-04-20 22:28:28 +00:00
|
|
|
if m.globals = invalid
|
|
|
|
m.globals = CreateObject("roAssociativeArray")
|
|
|
|
end if
|
2021-06-26 10:18:09 +00:00
|
|
|
end sub
|
2019-04-20 22:28:28 +00:00
|
|
|
|
|
|
|
function getGlobal(key="" as String) as Dynamic
|
|
|
|
initGlobal()
|
|
|
|
return m.globals[key]
|
|
|
|
end function
|
|
|
|
|
2021-06-26 10:18:09 +00:00
|
|
|
sub setGlobal(key="" as String, value=invalid as Dynamic)
|
2019-04-20 22:28:28 +00:00
|
|
|
initGlobal()
|
|
|
|
m.globals[key] = value
|
2021-06-26 10:18:09 +00:00
|
|
|
end sub
|