16 lines
340 B
Plaintext
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
|