Page loading

Share your opinion
What do you think about gambaslinux.fr?
 
Interesting
It miss some informations
Excellent website
Results
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
Gambas 2 - gb.setting
GB.SETTING

gbsetting.png
If you want to use configuration files (as ini files on win$­), you have to use gbsetting component.
Very easy to use, here you find a simple application to learn to load or save configuration file.

Where is the configuration file ? :
The configuration file have extention .conf and you find it here : /home/user/.config/gambas/applicationname.conf
AS you see on the screenshot , the configuration file has categories and variables and values.


USING CONFIGURATION FILE

To write in the configuration file use this code :
Settings["Control/1"] = TextBox1.text
Settings["Control/2"] = ValueBox1.Value
Settings["maman/1"] = TextBox1.text
Settings["maman/2"] = ValueBox1.Value

detailled Line 1 :
Setting["category name/ variable"] = Value.
To read value from configuration file

TextBox1.Text = Settings["Control/1"]
detailled line 1
you read in the category 1 in the variable 1 the value and you put inside textbox1.text.

thanks for your attention



Creation date : 01/03/2011 @ 10:36
Last update : 01/03/2011 @ 10:36
Category : Gambas 2
Page read 5082 times


Print the article Print the article


react.gifReactions to this article

Nobody gave a comment yet.
Be the first one to do it!


QUICK MENU
SEARCH




LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS

   visitors

   visitors online

ARCHIVES GAMBAS 1/2
^ Top ^