[Gambas-user] Problem with gb.settings
gambas at ...1938...
gambas at ...1938...
Wed Dec 10 22:18:16 CET 2008
Hi George!
Thanks for your reply.
Perhaps I was not really clear.
- I want to write a component
- This component needs to read some settings from a config file
- Because of the fact, that the functions of the component are called
directly, doing something like this:
Private hCFG As New Settings(User.Home &/ "Path/To/Configfile")
is not possible, because the declaration would be done, but not the assigning
of the path to the config file
So what I need is:
Declare hCFG as Private
and do the assignment of the path in _init-sub, so that gb.settings knows
which config file it has to load.
Private hCFG As New Settings("/Path/To/cfg") AS "hCFG"
doesn't do the job...the object hCFG stays empty.
> > ...and another question: Where can I get (read) informations about such
> > things and how to do them in Gambas?
>
> Do you mean this?
Not really. I meant this things like creating objects and assigning data to
them in those various ways.
Greetz
Stevie
More information about the User
mailing list