[Gambas-user] Best way to enumerate multiple arrays or collections?

Jussi Lahtinen jussi.lahtinen at ...626...
Thu Aug 25 20:00:19 CEST 2016


Sometimes I have code where I have multiple arrays or collections, which I
would enumerate at once.

Now I have to do it this way:

For Each hObject In hCollection1
  DoSomething ...
Next

For Each hObject In hCollection2
  DoSomething ...
Next


And I would like to do it this way:

For Each hObject In hCollection1, hCollection2
  DoSomething ...
Next


Is this possible for future release of Gambas? Or is there some other
preferred way?
I guess with arrays you can use "insert" to combine the arrays in temporary
array, but not with collections.



Jussi



More information about the User mailing list