Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-06-2010, 11: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, 11:34 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
http://www.kinook.com/VisBuildPro/Manual/loopaction.htm
Reply With Quote
  #3  
Old 01-06-2010, 12:56 PM
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, 01:08 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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, 03: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, 2326 views)
Reply With Quote
Reply


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 09:17 AM.


Copyright © 1999-2023 Kinook Software, Inc.