< Gambas
Back to Gambas
Useful Modules
All useful modules are grouped in components.
Try to master the Settings component at the beginning!
In project properties, in components, activate the gb.settings
!
You can use it like this (for example, in a Form named FMain with a Label named Label1) :
' Gambas class file
' FMain
Private $counter As Integer = 0
Public Sub Form_MouseUp()
Settings.Reload
Message.Info(Settings["My/Ref", "default"])
End
Public Sub Label1_MouseDown()
Inc $counter
Settings["My/Ref"] = CStr($counter)
Settings.Save
End
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.