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 05-01-2009, 02:24 PM
lherz lherz is online now
Registered User
 
Join Date: 07-21-2005
Posts: 15
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.
Reply With Quote
  #2  
Old 05-01-2009, 02:39 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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
Reply With Quote
  #3  
Old 05-01-2009, 03:31 PM
lherz lherz is online now
Registered User
 
Join Date: 07-21-2005
Posts: 15
That worked, thanks. I knew I was overlooking something simple.
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 02:34 PM.


Copyright © 1999-2023 Kinook Software, Inc.