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 12-16-2009, 02:03 PM
abcdetech abcdetech is online now
Registered User
 
Join Date: 04-30-2008
Posts: 18
LASTSTEP_STATUS, executing next step based on previous step

The easiest way to execute the second step based on previous step is to use %LASTSTEP_STATUS%



I have two steps:

1. Make VS2008
2. Copy Files with Build Only if %LASTSTEP_STATUS% is equal to 0.

This will work.

Now, in step 1 I've added - Build "Failure Step Something" on failure.

Now if Step 1 fails, it goes into Failed steps and %LASTSTEP_STATUS% gets reset to 0. So Step 2 will be executed no matter what; even if Step 1 failed. This is not what I want.

How to execute Steps 2-N only if Step 1 in Project Steps succeeded?

Manipulating with temp macros, setting them up, resetting - it's a pain. Perhaps there is a better way with System Macros to do this?

thank you
Reply With Quote
  #2  
Old 12-16-2009, 02:31 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
In the vbld_StepDone script event of Step #1, store the status in another temporary macro:

vbld_TempMacros.Add "VS2008_STATUS", Step.BuildStatus

and reference that macro instead of LASTSTEP_STATUS in Step #2.

http://www.kinook.com/VisBuildPro/Ma...riptevents.htm
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 01:19 AM.


Copyright © 1999-2023 Kinook Software, Inc.