[Gambas-user] Problem with gb.settings

Georg Lassnig glassnig at ...1994...
Wed Dec 10 18:20:25 CET 2008


Am Mittwoch 10. Dezember 2008 18:05:45 schrieb gambas at ...1938...:
> Hi List,
>
> This in the module area works.
> Private hCFG As New Settings("/Path/To/cfg")
Try this:
Private hCFG As New Settings("/Path/To/cfg") AS "hCFG"


>
> Because I'm writing a component, now I have to do this in the module area:
> Private hCFG As Settings
>
> And something like this in the _init-Sub
> hCFG = New Settings("/Path/To/cfg")
> 'Just for testing
> Print hCFG["General/Color"]
hCFG["General/Color"] = Variable
hCFG.Save


> ...and another question: Where can I get (read) informations about such
> things and how to do them in Gambas?
Do you mean this?
Variable = hCFG["General/Color"]

Regards
George




More information about the User mailing list