Sherzod Posted May 1, 2019 Share Posted May 1, 2019 Hi, 3 hours ago, paul.coshott said: I'll create a small example Please make a simple testcase Quote Link to comment Share on other sites More sharing options...
paul.coshott Posted May 3, 2019 Author Share Posted May 3, 2019 Hi Sherzod, As I am using the trial version, I don't seem to be able to attach files to the forum. I have started a question in the support portal and attached a demo project. Maybe once you have looked at it, you could attached the working project back here for those that are interested. Thanks for looking into this. Cheers, Paul Quote Link to comment Share on other sites More sharing options...
paul.coshott Posted May 9, 2019 Author Share Posted May 9, 2019 Hi Sherzod, Have you been able to look at the demo project that you requested, that I sent to you? Cheers, Paul Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 9, 2019 Share Posted May 9, 2019 Hi Paul, Sorry for the late reply Yes, I need to check this once again Quote Link to comment Share on other sites More sharing options...
fraxzi Posted July 2, 2020 Share Posted July 2, 2020 Hi, How to save an Array of data to localstorage? Thanks in advance. -Frances Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 2, 2020 Share Posted July 2, 2020 4 hours ago, fraxzi said: How to save an Array of data to localstorage? Hi, Have you looked, tested the above code examples? Specifically, what do you want to save, and how do you want to use it further? Quote Link to comment Share on other sites More sharing options...
fraxzi Posted July 2, 2020 Share Posted July 2, 2020 46 minutes ago, Sherzod said: Hi, Have you looked, tested the above code examples? Specifically, what do you want to save, and how do you want to use it further? Hi Sherzod, Yes I tested the above. But I have an array (multi-dimension) I wish to save and retrieve from/to localstorage. How to do it? Thanks, Frances Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 2, 2020 Share Posted July 2, 2020 1 minute ago, fraxzi said: But I have an array (multi-dimension) For example? Quote Link to comment Share on other sites More sharing options...
fraxzi Posted July 2, 2020 Share Posted July 2, 2020 Just now, Sherzod said: For example? Hi Sherzod, ... const aArray : array [0..2, 0..2] of string = ( ('A0', 'A1', 'A2'), ('B0', 'B1', 'B2'), ('C0', 'C1', 'C2') ); ... I would like to save the content of aArray into localstorage. Thanks, Frances Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 3, 2020 Share Posted July 3, 2020 23 hours ago, fraxzi said: I would like to save the content of aArray into localstorage. Hi, Sorry for the late response. I think, you need to "encode" the array into a string, and save it in localstorage as a string, unless, you want to use it as an array on the client side. And then, say, at the start of the project, get this value, and "decode". Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.