[Gambas-user] class instwnce or verification

PICCORO McKAY Lenz mckaygerhard at gmail.com
Wed Nov 29 15:54:15 CET 2017


sorry this mail/question was incorrecty made, i send the othber mail about
"how to avoid second instance in hole project"

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com

2017-11-29 3:18 GMT-04:00 Fabien Bodard <gambas.fr at gmail.com>:

> 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
>
> --------------------------------------------------
>
> This is the Gambas Mailing List
> https://lists.gambas-basic.org/listinfo/user
>
> Hosted by https://www.hostsharing.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20171129/c347828d/attachment.html>


More information about the User mailing list