[Gambas-user] Enumerating multiple objects at once
Jussi Lahtinen
jussi.lahtinen at ...626...
Wed Sep 5 18:39:52 CEST 2012
Hi! Is there way to enumerate multiple objects without merging them first?
Something like:
For Each hObject In cCollection1 & cCollection2 & hOneMoreObject
...
Next
I think it would be more elegant than:
For Each hObject In cCollection1
DoSomething(hObject)
Next
For Each hObject In cCollection2
DoSomething(hObject)
Next
DoSomething(hOneMoreObject)
At least when DoSomething() doesn't have any else use.
Or is there some other preferred way?
Jussi
More information about the User
mailing list