Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-06-2010, 10:24 AM
krosty krosty is online now
Registered User
 
Join Date: 10-20-2009
Location: Princeton, NJ
Posts: 13
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
Reply With Quote
  #2  
Old 01-06-2010, 10:34 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 5,743
http://www.kinook.com/VisBuildPro/Manual/loopaction.htm
Reply With Quote
  #3  
Old 01-06-2010, 11:56 AM
krosty krosty is online now
Registered User
 
Join Date: 10-20-2009
Location: Princeton, NJ
Posts: 13
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
Reply With Quote
  #4  
Old 01-06-2010, 12:08 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 5,743
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).
Reply With Quote
  #5  
Old 01-07-2010, 02:29 PM
krosty krosty is online now
Registered User
 
Join Date: 10-20-2009
Location: Princeton, NJ
Posts: 13
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
Attached Files
File Type: bld loop.bld (1.5 KB, 655 views)
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 07:57 PM.


Copyright 1999-2019 Kinook Software, Inc.