[Gambas-user] Reading settings

Benoît Minisini gambas at ...1...
Mon Aug 3 20:10:50 CEST 2009


> 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

Regards,

-- 
Benoît




More information about the User mailing list