Skip to content
Prev 156345 / 398502 Next

Loop on vector name

Others have answered the question that you asked (it is also a variation of Faq 7.21), but here is an answer to the question that you should have asked:

When working with datasets like this, it is better to create a list rather than separate objects with names like dat1, dat2, etc.

For example:
Now your loop can be:
Or even simpler:
And when you are through with the data, you only need to delete one object, or copy one object, or save one object, etc.

Hope this helps,