Forum Discussion
btpoole
9 years agoChannel Surfer
"belltown" wrote:"btpoole" wrote:
belltown thanks so much for the example. Using your code was great for my app but I do have a question. I am trying to delete one of the elements of the config as followsm.global.config.delete("mylist")
print m.global.config
When I do the above the print still shows the "mylist" as being part of the config. Is there something missing? Thanks for any help
Try:
m.global.config.removeField("mylist")
See https://sdkdocs.roku.com/display/sdkdoc/ifSGNodeField#ifSGNodeField-removeField(fieldNameasString)asBoolean
I see my mistake. I was only removing or deleting the mylist from global but not really deleting it from the registry section it was stored in, so each time app started it was getting it from the registry. Thanks again for the code.