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)
-   -   Incrementing a global macro (https://www.kinook.com/Forum/showthread.php?t=4374)

ChrisF 01-20-2010 10:36 AM

Incrementing a global macro
 
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/Ma...xpressions.htm

You can also use a Run Script action. See http://www.kinook.com/VisBuildPro/Ma...riptsample.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.


All times are GMT -5. The time now is 05:24 AM.


Copyright © 1999-2023 Kinook Software, Inc.