[Gambas-user] How Settings.Read works?
Bruce Steers
bsteers4 at gmail.com
Thu Sep 29 13:04:12 CEST 2022
By default the Settings.Read uses the object name as the Key
So this should be correct..
Settings.Read(Me, Me.Name, [100, 100, 512, 512, 0, 0])
Or..
Settings.Read(Me, "FMain", [100, 100, 512, 512, 0, 0])
Or..
Settings.Read(Me, Null, [100, 100, 512, 512, 0, 0])
Respects
BruceS
On Thu, 29 Sept 2022 at 11:31, gian via User <user at lists.gambas-basic.org>
wrote:
> Hi,
>
> the issue is simple: either I have not understood how Settings.Read
> works, or Settings.Read does not work completely.
>
> [code]
>
> Public Sub Form_Open()
>
> ' If Settings.Exist("FMain/Geometry") Then ' <------------------this
> works
> ' Settings.Read(Me)
> ' Else
> ' Me.X = 100
> ' Me.Y = 100
> ' Endif
> Settings.Read(Me, "Geometry", [100, 100, 512, 512, 0, 0]) ' <---this
> *not* works, also with key "FMain/Geometry" or nothing key
>
> End
>
> Public Sub Form_Close()
>
> Settings.Write(Me)
>
> End
>
> [/code]
>
> Regards & Thanks
>
> Gianluigi
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220929/67a0c409/attachment.htm>
More information about the User
mailing list