[Gambas-user] How Settings.Read works?

gian bagoneo at libero.it
Thu Sep 29 12:29:53 CEST 2022


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


More information about the User mailing list