[Gambas-user] Problem with gb.settings

Jussi Lahtinen jussi.lahtinen at ...626...
Wed Dec 10 18:34:35 CET 2008


Sorry,

 hCFG["General/Color"] = something to write under General/Color
 hCFG.Save

Of course....



On Wed, Dec 10, 2008 at 7:33 PM, Jussi Lahtinen
<jussi.lahtinen at ...626...> wrote:
> @ http://gambasdoc.org/help/comp/gb.settings/settings
>
> There is example of usage. I think you need code something like this:
>
> hCFG[General/Color] = something to write under General/Color
> hCFG.Save
>
> Ok?
>
>
> Jussi
>
>
>
> On Wed, Dec 10, 2008 at 7:05 PM,  <gambas at ...1938...> wrote:
>> Hi List,
>>
>> This in the module area works.
>> Private hCFG As New Settings("/Path/To/cfg")
>>
>> 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"]
>>
>> No complains when compiling it..but the object stays empty. Print() doesn't
>> put any data out.
>>
>> What I'm doing wrong?
>>
>> ...and another question: Where can I get (read) informations about such things
>> and how to do them in Gambas?
>>
>> TIA
>> Stevie
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
>> The future of the web can't happen without you.  Join us at MIX09 to help
>> pave the way to the Next Web now. Learn more and register at
>> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>




More information about the User mailing list