[Gambas-user] Question about settings in gambas2.1.9.23

Charlie Reinl Karl.Reinl at ...9...
Mon Jan 9 19:57:28 CET 2006


Salut Benoit,

can you or anybody else, explain me what should happen while executing
the following SUB Main. 

SUB Main()
DIM hSettings AS Settings
  	hSettings = NEW Settings("/home/charlie/.myProject.conf")
  	PRINT hSettings["PROJECTLANG", "EN"]
END

I thougth, it is looking at '/home/charlie/.myProject.conf' to find 
"PROJECTLANG"

If found  "PROJECTLANG", the value is returned.

If not '/home/charlie/.myProject.conf' will be created if not exists, and 
"PROJECTLANG" is written in with the value "EN" t o the file.

"EN" is returned as value

If my thought are right, settings have a problem, if not explain me what I 
have todo.

But at last, even that dont work.

SUB Main()
DIM hSettings AS Settings
  	hSettings = NEW Settings("/home/charlie/.myProject.conf")
  	PRINT hSettings["PROJECTLANG", "EN"]
  	hSettings.Save()
  	PRINT hSettings["PROJECTLANG", "EN"]
END

Amicalment
Charlie




More information about the User mailing list