<div dir="ltr"><div>By very quick look, I think "New Settings" will create new empty settings file. Instead use it as static class.</div><div><br></div><div><br></div><div>Jussi<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 4, 2019 at 11:56 AM Peter Peyotle <<a href="mailto:peterpeyotle@gmx.de">peterpeyotle@gmx.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p><span class="gmail-m_-1040120677714917310tlid-translation gmail-m_-1040120677714917310translation" lang="en">hello and
good day,<br>
<br>
I have a problem with the settings. At least in understanding.<br>
I have a form with 2 classes. Class 1 and Class 2.<br>
Each class has its own Settingsobject myClass.<br>
Legend Settings objects refer to the same configuration file,
for example: mySettings = New Settings (Application.Path &
"/" & Application.Name & ".conf")<br>
In class 2 the settings are written and saved: mySettings ["test
/ teststring"] = setString<br>
mySettings.save<br>
in class 1 the settings are read out.<br>
In the upper window of the example, the text is entered and read
via the button and output (see the example appendix).<br>
If I enter "Hello" as the setting text, nothing is read at
first.<br>
I finish the application (or the class).<br>
If I then enter another text, "Hello" will be read out. With
another input, the next to last text is always read out.<br>
I know that these are two different objects. But they access the
same config file, in which the settings are saved, and yet they
should read the stored values correctly and not offset them.<br>
Or is the text saved to the hard disk when the application
exits? But with mySettings.save this should already have
happened?<br>
What did not I understand there?</span></p>
</div>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</blockquote></div>