[Gambas-user] Check Boxes

Bruce Steers bsteers4 at gmail.com
Fri Jun 11 01:03:57 CEST 2021


you must make hSettings a global variable and only instance it once in
Form_Load() with hsettings = New Settings.

then just set the settings and call hSettings.Save() in SaveInfo() , i
think you create a brand new settings object the way you do it. and the
hSettings object created in From_Load() is cleared after the functions runs
because it is not global.

BruceS

On Thu, 10 Jun 2021 at 22:10, John Dovey <dovey.john at gmail.com> wrote:

> I have an odd change of value which I can't track down.
> I load some values of true and false from an ini file into variables
> declared as boolean, then set the checkbox.value = variable
>
> On the .click event of the checkbox, I make some changes but when it
> emerges from that, the values are back to defaults. You can see in the load
> event of the form I have some debug statements to show the change.
>
> You can see the check boxes on the third tab
>
> JD
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210611/fddfc82a/attachment.htm>


More information about the User mailing list