Forum Discussion
Photovor
9 years agoVisitor
I'm still having a slight issue with accessing the config array from my screengraph screen.
In main() I do this:
And that gets my config as a global, but I can't access that inside my Screen.
In main() I do this:
sub Main()
m.config = getConfig()
showChannelSGScreen()
end sub
function getConfig() as Object
print "Getting Registry Values"
config = {}
registrySection = CreateObject("roRegistrySection", "CampusSignage")
configString = registrySection.Read("config")
if configString = ""
print "getConfig. No config registry info found"
else
config = ParseJson(configString)
if Type(config) <> "roAssociativeArray"
print "getConfig. Expecting roAssociativeArray, found: "; Type(config)
config = {}
end if
end if
return config
end function
And that gets my config as a global, but I can't access that inside my Screen.