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)
-   -   Build step not being skipped (https://www.kinook.com/Forum/showthread.php?t=1186)

Murrgon 08-04-2005 03:59 PM

Build step not being skipped
 
I have a number of build steps that are set to run only if the %Build_TestSucceeded% macro is set to "True". The first six steps with this rule are skipped just fine, but the seventh one gives me a VBScript error in the vbld_StepDone function. Is this function being run regardless of whether the build step was actually executed?

Thanks

kinook 08-04-2005 05:51 PM

The vbld_StepDone event still fires if a step's action is skipped. If you need to execute some logic in the event only if it wasn't skipped, use code like this:

If Step.BuildStatus <> vbldStepStatSkipped Then
' logic if not skipped goes here
End If

Murrgon 08-05-2005 08:45 AM

Okay, I got around that problem. However, if I have the "Repeat step while condition is true" check box enabled, does it execute all of the vbld_StepStart() .. vbld_StepDone() functions for each iteration, or just once for the entire number of times it loops?

kevina 08-05-2005 02:57 PM

The events will each fire once for every step iteration.


All times are GMT -5. The time now is 02:57 PM.


Copyright © 1999-2023 Kinook Software, Inc.