View Single Post
  #1  
Old 10-09-2008, 03:11 PM
Joe G Joe G is online now
Registered User
 
Join Date: 10-09-2008
Posts: 6
create macro with a fixed size

I need to create a macro for a build number with a fixed size of 4 digits: e.g. 0000

my current project macro is:
Macro name: PRODUCT_BUILD_NUMBER
value 0000 (my initial value)

The increment step is:
[%PRODUCT_BUILD_NUMBER%+0001]

the result is: 1 (leading zeroes are suppressed)

When the macro is incremented by 1, I would like the result to be:
0001, 0002, 0003, etc . with leading zeroes intact.

It seems simple, but I cannot find a way to format the value. It always suppresses the leading zeroes.

TIA
Reply With Quote