Home » Community » Newbie corner » Problem in example code (Tried SplitterFrame yet minor problem.)
Re: Problem in example code [message #45941 is a reply to message #45898] |
Fri, 29 January 2016 13:05   |
|
Thanks a lot.
I have another problem. I have a layout containing lots of EditField and DropList etc. I want to store in a file. I though to save in JSON file. I am using the following snippets.
filename1 = "";
PWDir="/home/vega/MyApps/Flasher/DAT/";
fs1.PreSelect(PWDir);
fs1.Types("*.inp");
if (fs1.ExecuteSaveAs(NULL))
filename1 = ~fs1;
for (Ctrl *q = GetFirstChild(); q; q=q->GetNext())
if (dynamic_cast<EditField *> (q)) {
String id = q->GetLayoutId();
PromptOK(id);
if (id.GetCount())
json(id, ~*q);
}
SaveFile(ConfigFile(filename1), json);
I find that SaveAs window comes and after entering filename to store, the file is not stored.
How can I solve the issue?
Best Regards
Abhijit
[Updated on: Fri, 29 January 2016 13:06] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun May 04 22:23:18 CEST 2025
Total time taken to generate the page: 0.02726 seconds
|