PDA

View Full Version : End project based upon Macro value


lherz
05-01-2009, 02:24 PM
How do I quit a project from within a step?

Actually I do not just want to quit the project but fail a step that will then call a specific fail step to send an appropriate e-mail before quitting.

I am testing for the existence of data in a macro, and have that piece working, but just seem to be drawing a blank on how to get the step to conditionally fire the fail steps to send the e-mail and quit gracefully.

kinook
05-01-2009, 02:39 PM
What do you mean 'from within a step'? What kind of step? For a Run Script step or a step script event, set Step.BuildStatus = vbldStepStatFailed or raise an error (Err.Raise in VBScript or throw in JScript).
http://www.kinook.com/VisBuildPro/Manual/scriptevents.htm

Configure the step to build all or a specific failure subroutine on failure, and if the step fails, the specified failure steps will be built and the build will stop.
http://www.kinook.com/VisBuildPro/Manual/stepfailure.htm
http://www.kinook.com/VisBuildPro/Manual/failurestepstab.htm

lherz
05-01-2009, 03:31 PM
That worked, thanks. I knew I was overlooking something simple.