What's the easiest way to store a dictionnary in Webstorage?

Get help using Construct 2

Post » Sat Oct 18, 2014 11:19 am

That's the question. Wondering if there is a way to easily store lots of variables in cache via webstorage or custom plugin if somebody has made one.
B
12
S
4
G
1
Posts: 241
Reputation: 1,699

Post » Sat Oct 18, 2014 12:05 pm

I'm not sure what you are asking, haha..

It would seem to me that setting webstorage to Dictionary.Get("NameOfKey") would be enough..

Setting the value of the dictionary object, would be Dictionary set value Variable1&";"&Variable2&";"&Variable3
So when retrieving the values you could use tokenAt :
Tokenat(Dictionary.Get("NameOfKey"),0,";") to get the first value..
If the values are numbers you should use int() or something similar to convert the string back to a number..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], mindragon73, nahima and 19 guests