Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

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:09
By 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 Wink

Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Issues using 2015.2 version
Next Topic: How to build FREBSD *.so in Windows?
Goto Forum:
  


Current Time: Thu May 09 17:12:03 CEST 2024

Total time taken to generate the page: 0.01579 seconds