2021-06-26 10:18:09 +00:00
|
|
|
sub initGlobal()
|
2021-07-09 20:08:32 +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
|
|
|
|
2021-07-09 20:08:32 +00:00
|
|
|
function getGlobal(key = "" as string) as dynamic
|
|
|
|
initGlobal()
|
|
|
|
return m.globals[key]
|
2019-04-20 22:28:28 +00:00
|
|
|
end function
|
|
|
|
|
2021-07-09 20:08:32 +00:00
|
|
|
sub setGlobal(key = "" as string, value = invalid as dynamic)
|
|
|
|
initGlobal()
|
|
|
|
m.globals[key] = value
|
2021-06-26 10:18:09 +00:00
|
|
|
end sub
|