PDA

View Full Version : foreach type functionality


krosty
01-06-2010, 11:24 AM
I want to repeat a group of steps multiple times and pass different arguments to the constituent steps each time. Normally in NAnt/MSbuild, for example, we can write (or use theirs) a foreach task to iterate through an array containing the input arguments and put the steps-to-be-repeated inside the foreach. Can something in that line be done in VBP. Other thing I'm thinking is using the script action to write some VBScript code to do the iteration through an array. But I will need to find out how you can call a step/group programmatically using VBScript. I'm new in VBP. Any help will be much appreciated

kinook
01-06-2010, 11:34 AM
http://www.kinook.com/VisBuildPro/Manual/loopaction.htm

krosty
01-06-2010, 12:56 PM
Thanks for the prompt reply. I'm using version 6.7a. I'm not seeing the loop action under built-in actions. Also, is it possible to provide me with an example build script

kinook
01-06-2010, 01:08 PM
The Loop action is new in v7.
http://www.kinook.com/VisBuildPro/Manual/version7.htm

There are several samples provided with v7 that demonstrate the Loop action (see http://www.kinook.com/VisBuildPro/Manual/index.htm?loopaction.htm).

krosty
01-07-2010, 03:29 PM
Found this neat little solution for looping for folks who don't have version 7. Actually I found it in one of the samples provided. See attached file