PDA

View Full Version : Incrementing a global macro


ChrisF
01-20-2010, 10:36 AM
Say I have a global macro, BUILD_NUM, for example, that I set with one script.

How can I set a step in a second script to increment the macro? Will it be just a Set Macro step re-using the above global macro name with a value of %BUILD_NUM% + 1?

kinook
01-20-2010, 10:47 AM
You could use a Set Macro action with a value of

[%BUILD_NUM%+1]

http://www.kinook.com/VisBuildPro/Manual/scriptexpressions.htm

You can also use a Run Script action. See http://www.kinook.com/VisBuildPro/Manual/scriptsample.htm

Shiamak
01-27-2014, 05:05 PM
As always, thanks a bunch for your prompt reply however I ended up using %LOOP_VALUE% along with Loop statement, it worked really well.