Hi All,
A puzzle with KVS. I have an App with a number of Lists that I store as KVS. One list is not working.
The code below is what I inserted to try to track the problem. All Lists are handled much the same way in set up and back up, the others work this one doesn't. The full code is too large to post in it's entirety.
storelist is defined as List in the same line as the other Lists.
Any suggestions gratefully received.
Regards Roger
A puzzle with KVS. I have an App with a number of Lists that I store as KVS. One list is not working.
The code below is what I inserted to try to track the problem. All Lists are handled much the same way in set up and back up, the others work this one doesn't. The full code is too large to post in it's entirety.
storelist is defined as List in the same line as the other Lists.
B4X:
storelist.Set(7, 55)
Log("Number Pre KVS = "&storelist.Get(7)) ' Correctly shows 55
kvs.PutObject("storelist", storelist)
storelist = kvs.GetObject("storelist")
Log("Number Post KVS = "&storelist.Get(7)) 'Returns null
Any suggestions gratefully received.
Regards Roger