[Gambas-user] BUG: Settings.Keys (gb.settings)

Lewis Balentine lewis at ...3412...
Thu Nov 27 21:42:05 CET 2014


It works like charm Tobi.
I added the example code to the Wiki.

...

   Dim sSlot, sKey As String

   For Each sSlot In Settings.Keys
     For Each sKey In Settings.Keys[sSlot]
       Print sSlot &/ sKey
     Next
   Next

If I was to vote, I'd not change the documentation as _Settings_Keys
ultimately allows you to enumerate all the keys. Obviously (?) the keys
are namespaced using a slot, so to enumerate all the keys, it makes sense
to require that we go through the namespace level first.

Regards,
Tobi







More information about the User mailing list