Forum Discussion
Hexamon
15 years agoNewbie
Excellent idea! Here's a bit more generalized version for creating pseudo-globals for something like global config options and don't want to turn the entire app into a pseudo-object (which is a good idea but geeks be lazy):
Function constructConfig()
m["config"] = createObject("roAssociativeArray")
End Function
Function getConfigValue(key as String) as Dynamic
config = m["config"]
return config[key]
End Function
Function setConfigValue(key as String, value as Dynamic)
config = m["config"]
config[key] = value
End Function