Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   End project based upon Macro value (https://www.kinook.com/Forum/showthread.php?t=4025)

lherz 05-01-2009 02:24 PM

End project based upon Macro value
 
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/Ma...riptevents.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/Ma...tepfailure.htm
http://www.kinook.com/VisBuildPro/Ma...restepstab.htm

lherz 05-01-2009 03:31 PM

That worked, thanks. I knew I was overlooking something simple.


All times are GMT -5. The time now is 11:58 PM.


Copyright © 1999-2023 Kinook Software, Inc.