View Single Post
  #6  
Old 10-10-2008, 02:50 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,027
Assuming a temporary macro named PRODUCT_BUILD_NUMBER with the build number in 0000 form and a trailing space, a Run Script step (VBScript) with this code would remove any trailing space(s).

Set m = vbld_TempMacro("PRODUCT_BUILD_NUMBER")
m.Value = Left(m.Value, 4)

The attached sample increments and logs the build number macro from 0001 to 0100 without adding a trailing newline.
Attached Files
File Type: bld padbuildnum.bld (878 Bytes, 985 views)
Reply With Quote