#1
|
|||
|
|||
How can I increment a macro value?
I have a project macro (BUILD_VER) that I want to increment after every build. How can I do this?
I am trying to use the Macro action where I set its value. If I set its value to %BUILD_VER% +1 it changes the value to be "5 + 1". How can I make it evaluate the math first? -dh |
#2
|
|||
|
|||
Use a script expression (indicated by brackets):
[%BUILD_VER% + 1] Also see the Increment Counter step in the Advanced.bld sample. |
#3
|
|||
|
|||
That works great!
Thanks. -dh |
#4
|
|||
|
|||
I need something similar-I have a macro %BUILD_VER% having the initial value 6.4.1010.0 (so it does not contain only numbers).
I need to update its value after every succesful build by incrementing the 3rd field (6.4.1010.0->6.4.1011.0).How can I do this? |
#5
|
|||
|
|||
See attachment.
|
#6
|
|||
|
|||
thanks a lot,it works perfect!
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|