PDA

View Full Version : Reset next step using VBScript


modernrocketry
04-06-2006, 01:20 PM
I am a newbie to VBP and have a question:

I know you can save the status of a build (see SaveStatus.bld) however I also want to reset the step that is run when that build is started again.

Can I do this with VBScript?

example

Build file contains:
1. init env
2. clean dir's
3. get
4. compile

if compile fails, I want the build to resume the next build at step 2 (clean dir's) not step 4

Thanks
mr

kinook
04-06-2006, 05:01 PM
Yes, you can programmatically modify the BuildStatus property of the appropriate step(s) before saving.
http://www.visualbuild.com/Manual/buildstatusproperty.htm
http://www.visualbuild.com/Manual/stepsproperty.htm
http://www.visualbuild.com/Manual/objectmodel.htm