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)
-   -   Jumping to a Step/macro (https://www.kinook.com/Forum/showthread.php?t=3581)

ShiamakD 04-29-2008 09:32 AM

Jumping to a Step/macro
 
Hi All,

I was wondering if there is a way to jump to a particular step in your script and execute it.?

What I need to do is basically perform certain action based on out of one action, so I have created "common' steps in my scripts. I would like to use VB for this task.

TIA

kinook 04-29-2008 10:01 AM

http://www.visualbuild.com/Manual/su...callaction.htm

ShiamakD 04-29-2008 10:21 AM

Dear Sir/madam,

I am really new to Visual Build and as I said before what I am looking for is a mechanism where i could use if statement like

[Psuedocode]
if (step.Build = vbfailed ) then
Step.Run(buildFiled)
endif;

The link that you sent me is certainly not self explantory, and help about that feature didnt help much in explaning.

I appreciate your response.

TIA

kinook 04-29-2008 10:29 AM

1 Attachment(s)
See the attached sample. If the 'test' step fails to build, the 'Handle test failure' failure subroutine will be built, and the build will continue with the next project step.

http://www.visualbuild.com/Manual/stepfailure.htm
http://www.visualbuild.com/Manual/failurestepstab.htm
http://www.visualbuild.com/Manual/steppanes.htm

ShiamakD 04-29-2008 12:24 PM

In the script you attached I dont see "Handle test failed" defined anywhere, where is it coming from and what does it (Handle test failed) contain in terms of steps.?

kinook 04-29-2008 12:33 PM

Click on the Failure Steps tab or choose View | Failure Steps on the menu.
http://www.visualbuild.com/Manual/steppanes.htm

ShiamakD 04-29-2008 01:37 PM

Quote:

Originally posted by kinook
Click on the Failure Steps tab or choose View | Failure Steps on the menu.
http://www.visualbuild.com/Manual/steppanes.htm

Thank you so much for your prompt response. I understand Visual Build is indeed a great tool but lack of easy to understand "help files" makes it very difficult for any user to use the tool and hence get frustrated.

With this being said , i would like to commend support staff for their prompt and accurate support.

Thanks again.

ShiamakD 05-01-2008 12:22 PM

Quote:

Originally posted by kinook
Click on the Failure Steps tab or choose View | Failure Steps on the menu.
http://www.visualbuild.com/Manual/steppanes.htm

Hello,

I am sorry but the solution that you provided does not completely solves my problem.


Currently I have created Failure Steps that gets executed if a associated step in Project steps fails, but what I wanna do is perform Failure steps and then take to control to a "Specifc" step in Project step.

For instance , lets say I have error message defined in Failre Steps for each step in my Main Project Steps. Now if that specific step in Main project steps fails the control goes to specific failure step and gets executed , I dont want script to stop here rather continue, if I contiue then other steps that were dependent on FAILED step would fail as well, I dont want to report this, what i want is, if a step fails, I create a error message (as defined in Failure Step macro) then transfer control to last step in Project step, perform the action (email in this case with crated text based on step failed) and exit the script.

I hope I am clear on what I want to achive using Visual Build.

Thanks

kinook 05-01-2008 01:50 PM

Put all dependent steps in a subroutine, and mark the subroutine steps to Exit subroutine on failure.
http://www.visualbuild.com/Manual/su...callaction.htm
http://www.visualbuild.com/Manual/stepfailure.htm

Or, in the Failure steps, create a temporary macro (i.e., STEPS_FAILED) to indicate that steps have failed, and on all dependent top-level steps, use a conditional build rule to build only if %STEPS_FAILED% is undefined.
http://www.visualbuild.com/Manual/setmacroaction.htm
http://www.visualbuild.com/Manual/buildrules.htm

ShiamakD 05-01-2008 02:23 PM

Quote:

Originally posted by kinook
Put all dependent steps in a subroutine, and mark the subroutine steps to Exit subroutine on failure.
http://www.visualbuild.com/Manual/su...callaction.htm
http://www.visualbuild.com/Manual/stepfailure.htm

Or, in the Failure steps, create a temporary macro (i.e., STEPS_FAILED) to indicate that steps have failed, and on all dependent top-level steps, use a conditional build rule to build only if %STEPS_FAILED% is undefined.
http://www.visualbuild.com/Manual/setmacroaction.htm
http://www.visualbuild.com/Manual/buildrules.htm

Hi,

So I assume there is no way in VisualBuild one could jump to a particular step within project steps?

Could you please confirm this?

Thanks

kinook 05-01-2008 02:31 PM

That's correct.


All times are GMT -5. The time now is 08:02 AM.


Copyright © 1999-2023 Kinook Software, Inc.