[Gambas-user] class instwnce or verification

Fabien Bodard gambas.fr at gmail.com
Wed Nov 29 08:18:07 CET 2017


Yes gb.setting is yours.

You can call myvalue=Setting["Section/Key", DefaulValue]

It can even store array, collection

You can set a value by Setting["Section/Key"]=Value



In the file

[Section]
Key="MyValue"


2017-11-28 22:16 GMT+01:00 Jussi Lahtinen <jussi.lahtinen at gmail.com>:
> There is Settings class already, why you cannot use it? Just write the
> passwords as hashes.
>
>
> Jussi
>
> On Tue, Nov 28, 2017 at 5:30 PM, PICCORO McKAY Lenz <mckaygerhard at gmail.com>
> wrote:
>>
>> long time without writing.. i want to use a class that create/read the
>> config file and set user and password to connect to database
>>
>> but in my implementation i wnats to check if already are a instance of, so
>> i not need to re-instanciate the configuration reading class
>>
>> somebody can ilustrate me or give me a example?
>>
>>
>> Lenz McKAY Gerardo (PICCORO)
>> http://qgqlochekone.blogspot.com
>>
>>
>> --------------------------------------------------
>>
>> This is the Gambas Mailing List
>> https://lists.gambas-basic.org/listinfo/user
>>
>> Hosted by https://www.hostsharing.net
>>
>
>
>
> --------------------------------------------------
>
> This is the Gambas Mailing List
> https://lists.gambas-basic.org/listinfo/user
>
> Hosted by https://www.hostsharing.net
>



-- 
Fabien Bodard


More information about the User mailing list