Page 1 of 1 1
Topic Options
#150459 - 2005-10-24 02:52 PM EnumKeys / EnumValues
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Would be nice to have "simpler" versions of the EnumKey and EnumValue functions. Functions that didn't require setting-up indexes and multiple reads and while/do loops. Functions that maybe returned an array of values or that actually implemented a collection-like enumerator, so that one can interate over them like a collection. Suggest the name EnumKeys and EnumValues, might look like:

Code:

For Each $Key In EnumKeys("Software")

For Each $Value in EnumValues("Software\"+$Key)

? "Value=" $Value

Next

Next



-Shawn

Top
#150460 - 2005-10-24 10:35 PM Re: EnumKeys / EnumValues
kholm Offline
Korg Regular
*****

Registered: 2000-06-19
Posts: 714
Loc: Randers, Denmark
Good idea,

Idea to implement this:

The index-parameter could be made optional so that if index-parameter is used the function returns a string
and if index-parameter is not used the functions should return an array.

-Erik

Top
Page 1 of 1 1


Moderator:  Lonkero, ShaneEP, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 671 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.049 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org