Home » Community » Newbie corner » Problem in example code (Tried SplitterFrame yet minor problem.)
Re: Problem in example code [message #45960 is a reply to message #45957] |
Sun, 31 January 2016 20:09   |
|
vegaonline wrote on Sun, 31 January 2016 15:09***** Actually, I have a card Layout and I want to fill different forms like EditField, EditInt etc and like to save only values in the forms to some text file so that another code will read it as input parameter and run. I thought to use json. However, is there any other simpler way to save only the values in those edit fields? Simpler way is to add Jsonize(JsonIO& json) method to whatever you want to save. Then you can simply call StoreAsJsonFile(object, filename), which will automatically use the Jsonize method to store all the data. The good thing about Jsonize is, that when implemented correctly, it can be used both ways. So you can load previously saved data without writing more code, simply just by calling LoadFromJsonFile(object, filename). See reference/Jsonize and Jsonize docs.
vegaonline wrote on Sun, 31 January 2016 15:09By the by, you are perfect to be a good TEACHER. I am grateful to you for answering an weak student like me. I'm happy to help. The learning curve for U++ is quite steep, so beginners sometimes need few hints, or they would leave before they find out the beauty of this powerful framework 
Honza
|
|
|
Goto Forum:
Current Time: Sun May 04 22:31:40 CEST 2025
Total time taken to generate the page: 0.02996 seconds
|