Iterate over string

Suggestion: extend the “List Iterator” to allow iteration over a string with some defined delimiter. The main advantage of course is that you can store a string in a variable, so this would mean you could store a list in a variable, for free.

Concrete use: wanting to recreate the same set of directories in various places. Sets of directories don’t (if I understand correctly) count as FileSets.

Hi Steve,

You can sortof already do this, because a variable can be multi-line. So, to build up your variable you can do this in script:
MyVar = MyVar & vbCR & vbLF

Then in the list iterator action you can just set the list to %MyVar% and it will iterate for each line in the string.

hth.
.t8

Ah, thanks, good thinking!

Steve

Hey, it turns out to be even easier if you use F2 to construct the original variable value…

Steve