Re: [Gambas-user] gb.settings comments deleted

2014-12-05 Thread Lewis Balentine
*.conf appears to be similar to *.ini files found for decades on the the ms windows platform. I have always preferred them in that environment rather than the newfangled and nearly unmanageable windows registry. They allow one to modify the operation of a program without having to go change the

Re: [Gambas-user] gb.settings comments deleted

2014-12-05 Thread Benoît Minisini
Le 05/12/2014 15:18, Tobias Boege a écrit : > On Fri, 05 Dec 2014, Beno?t Minisini wrote: >> Le 05/12/2014 12:07, Lewis Balentine a ?crit : >>> When settings are written back to the ".conf" file all comments/remarks >>> are stripped from the file. >>> Should not the documentation include a warning

Re: [Gambas-user] gb.settings comments deleted

2014-12-05 Thread Tobias Boege
On Fri, 05 Dec 2014, Beno?t Minisini wrote: > Le 05/12/2014 12:07, Lewis Balentine a ?crit : > > When settings are written back to the ".conf" file all comments/remarks > > are stripped from the file. > > Should not the documentation include a warning to this effect? > > Yes. > > > Better yet wou

Re: [Gambas-user] gb.settings comments deleted

2014-12-05 Thread Benoît Minisini
Le 05/12/2014 12:07, Lewis Balentine a écrit : > When settings are written back to the ".conf" file all comments/remarks > are stripped from the file. > Should not the documentation include a warning to this effect? Yes. > Better yet would be to keep those comments/remarks intact. It's not reall

[Gambas-user] gb.settings comments deleted

2014-12-05 Thread Lewis Balentine
When settings are written back to the ".conf" file all comments/remarks are stripped from the file. Should not the documentation include a warning to this effect? Better yet would be to keep those comments/remarks intact. example incoming: [slot] ; remark # remark ; comment Value0ne =1 ValueTwo =

Re: [Gambas-user] gb.settings

2014-05-20 Thread Tobias Boege
On Tue, 20 May 2014, Patrik Karlsson wrote: > Hi, > > does Settings cache values or does it read from file every time requested? > Settings is a bunch of Collection objects. It lives in memory most of the time. So it cannot possibly read *less* from file than it does currently. Regards, Tobi -

[Gambas-user] gb.settings

2014-05-20 Thread Patrik Karlsson
Hi, does Settings cache values or does it read from file every time requested? /Patrik -- "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS com

Re: [Gambas-user] gb.settings: Detect if a slot exists

2013-10-30 Thread Bruce
On Tue, 2013-10-29 at 13:38 +0100, Charlie Reinl wrote: > Am Dienstag, den 29.10.2013, 13:57 +1030 schrieb Bruce: > > I have a need to detect if a particular Slot exists in the .config > > file for an application. Just the Slot not whether any value lines exist > > under it. > > > > There doesn't

Re: [Gambas-user] gb.settings: Detect if a slot exists

2013-10-30 Thread Bruce
On Tue, 2013-10-29 at 13:43 +0100, Tobias Boege wrote: > On Tue, 29 Oct 2013, Bruce wrote: > > I have a need to detect if a particular Slot exists in the .config > > file for an application. Just the Slot not whether any value lines exist > > under it. > > > > There doesn't seem to be a way to do

Re: [Gambas-user] gb.settings: Detect if a slot exists

2013-10-29 Thread Tobias Boege
On Tue, 29 Oct 2013, Bruce wrote: > I have a need to detect if a particular Slot exists in the .config > file for an application. Just the Slot not whether any value lines exist > under it. > > There doesn't seem to be a way to do this via gb.settings? I have tried > using > > If Settin

Re: [Gambas-user] gb.settings: Detect if a slot exists

2013-10-29 Thread Charlie Reinl
Am Dienstag, den 29.10.2013, 13:57 +1030 schrieb Bruce: > I have a need to detect if a particular Slot exists in the .config > file for an application. Just the Slot not whether any value lines exist > under it. > > There doesn't seem to be a way to do this via gb.settings? I have tried > using

[Gambas-user] gb.settings: Detect if a slot exists

2013-10-28 Thread Bruce
I have a need to detect if a particular Slot exists in the .config file for an application. Just the Slot not whether any value lines exist under it. There doesn't seem to be a way to do this via gb.settings? I have tried using If Settings.Keys["Filter"] then but this seems always to b

Re: [Gambas-user] gb.settings. Saves my settings only when my form closing

2013-04-09 Thread Jussi Lahtinen
hs.Save() http://gambasdoc.org/help/comp/gb.settings/settings?v3 Jussi On Tue, Apr 9, 2013 at 6:35 PM, abbat81 wrote: > > Public Sub SaveButton_Click() > hs["Something/item1"] = Textbox1.Text > End > > > It does not save my settings. > But after my form is closed it takes change. > > Is ther

[Gambas-user] gb.settings. Saves my settings only when my form closing

2013-04-09 Thread abbat81
Public Sub SaveButton_Click() hs["Something/item1"] = Textbox1.Text End It does not save my settings. But after my form is closed it takes change. Is there something I don't understand correctly? I need my setting to take change immediately, because I also have one more button on the same for