PDA

View Full Version : How do you continue to build to next project folder after a failed step?


ambalboa
07-19-2007, 12:06 PM
I want to continue building after a failed step, but instead of continue building the next step, I want to exit the folder I am building in and start on the next project folder. Can that be done?

kinook
07-19-2007, 02:38 PM
Put the group of steps in a subroutine and configure the step(s) to 'Exit subroutine/build' on failure.
http://www.visualbuild.com/Manual/subroutinecallaction.htm
http://www.visualbuild.com/Manual/stepproperties.htm

ambalboa
08-23-2007, 06:00 PM
That's a solution for VBP 6.4, I have 6.2. My fault, I should have told you that detail. Still, I was able to figure it out by creating a build rule which evaluates the FAILSTEP_STATUS. When it's 1 (which means failure), skip, when its 0, build. Then it enters the next project folder which is where the FAILSTEP_STATUS is updated back to 0 to begin building that group of steps. I wrote some lines of script on the Step tab in Script Editor which sets FAILSTEP_STATUS back to 0. Here is that info.

Function vbld_StepStarting()
Set failedstatus = vbld_AllMacros()("FAILSTEP_STATUS")
failedstatus.Value = 0
End Function

Thanks for your time and help.