[Gambas-user] how to avoid second instance in hole project
PICCORO McKAY Lenz
mckaygerhard at gmail.com
Tue Nov 28 18:09:52 CET 2017
hi tobias, its safe to use module in loading of config files?
i mean, i not have the practice or skills but i propose made a mini
framework to speed up the developming in my job..
we need a common and consistent code and i try to made a common lib/module
that init the db using config file detected
this logic must be same/work for both web/xcgi or desktop gambas
it's there safe to use module in this case? as i ask, was thinking on
detect instanciation of!
Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
2017-11-28 12:59 GMT-04:00 Tobias Boege <taboege at gmail.com>:
> On Tue, 28 Nov 2017, PICCORO McKAY Lenz wrote:
> > i have a class that loads a file, and use it
> >
> > how to reuse the alredy instanciated class in the others class or modules
> > if gambas3 does not implements global vars?
> >
>
> Use a module. It's the closest you can get to a global variable in Gambas.
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
> --------------------------------------------------
>
> 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/20171128/f9bb7c7a/attachment.html>
More information about the User
mailing list