Forum Discussion
TheEndless
15 years agoRoku Guru
"kbenson" wrote:
Yeah, we were planning on doing something for the RokuDev library, but never got around to it.
Have you tested that? I think I discovered that the global object was actually unique to each function (but it's been a while since I tested and I don't remember). Less like a global mechanism and more like a way to implement Singletons. If that's the case, getConfigValue and setConfigValue are working with different "m" objects, but you can still do it by creating a combined get/set function.
That's not been my experience. I usually create a global Configuration object in RunUserInterface(), and access it throughout my application by calling Configuration().GetValue/SetValue where Configuration() is:
Function Configuration() As Object
Return m.Configuration
End Function