|
#1
|
|||
|
|||
foreach type functionality
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
|
#2
|
|||
|
|||
#3
|
|||
|
|||
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
|
#4
|
|||
|
|||
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/Ma...loopaction.htm). |
#5
|
|||
|
|||
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
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|