[Gambas-user] Suggestion for gb.settings component

RICHARD WALKER richard.j.walker at ...247...
Sat Oct 20 00:15:45 CEST 2012


On 19/10/2012, Christer Johansson <lists at ...2828...> wrote:
>
> It would be great if it leaved the exisiting comments intact since
> when dealing with large .conf files comments are IMHO invaluable to
> have in there.
>

Just a thought, Christer, but have you tried using "comment" entries
in your settings? What I mean is have, for example, a settings key
like:

"MyprogState/comment"

which would give you an entry like:

[MyprogState]
comment=Any string you like to describe this section

You can ignore the comment entries yourself when reading the .conf
file, or re-write them if it makes sense to do so.

Just a thought...

Richard




More information about the User mailing list