[Gambas-user] Searching a key in the array of gb.settings
gambas at ...1938...
gambas at ...1938...
Fri Nov 7 19:40:00 CET 2008
Am Freitag, 7. November 2008 17:50:55 schrieb Benoit Minisini:
> On vendredi 7 novembre 2008, gambas at ...1938... wrote:
> > But one question remains:
> > Is there a way to do something (say PRINT() ) with each element of the
> > settings.object without knowing each single key???
> >
> > Greetz
> > Stevie
>
> No way. Do you need it?
I'm not sure! ;-) But wouldn't it be cool, to do something like "for each"
with every element of every slot in the array? ...or with all elements of a
specifc slot? If it is an array, I assume, I can do every operation on it,
like on every other "normal" array.
for each element In hCFG["Action"]
Print element;
next
At the moment, I need to check if sItem is a valid choice in my servicemenu
(gb.settings), perhaps this way???
If (IsNull (hCFG["Action/" & sItem]) = False) Then
JumpToFunction
Else
Quit
Endif
Don't know, perhaps "IsObject" works...I'll try.
Greetz
Stevie
More information about the User
mailing list