[Gambas-user] Reading settings
Charlie Reinl
Karl.Reinl at ...9...
Fri Aug 7 16:08:47 CEST 2009
Am Montag, den 03.08.2009, 20:10 +0200 schrieb Benoît Minisini:
> > Guys, I've been working with gb.settings on a couple of my apps in the
> > past, but I have a question.
> >
> > Is there any way to sort of browse through the stored settings? I
> > guess to see what settings are defined in the settings file?
> >
>
> You can do the following in Gambas 3:
>
> ' Get all root keys
> For Each sKey In MySettings.Keys
> ...
> Next
>
> Or
>
> ' Get all keys in the "[Configuration/Slot]" slot
> For Each sKey In MySettings.Keys["Configuration/Slot"]
> ...
> Next
Salut,
the attached archive is a backport from gambas3 gb.settings for gambas2.
As there where no code-changes to make, it should do what it does in
gambas3.
For me it solved my \ problem.
I think, the gambas2 code for QuoteString() in Main.class is wrong.
--
Amicalment
Charlie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gb.settings-bp-2.15.2.tar.gz
Type: application/x-compressed-tar
Size: 16085 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20090807/f5847ef2/attachment.bin>
More information about the User
mailing list