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
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to