PDA

View Full Version : Delphi 5: setting version from macro


DavidMacLean
09-18-2006, 01:53 PM
A project macro VER is set to "2006.9.15"

Under the versions tab of a Delphi step, I "set the project version to a specific value ( The macro of course: %VER%)"

But I get only "2006" in the final result (the executable).

Yet when I do not use a macro, if I type the version number into the tab field instead of using %VER%, I get the desired result.

Syntax issue of some sort?
I tried various commas, quotes etc but no joy.


Thank you

kinook
09-18-2006, 04:15 PM
We were unable to reproduce this problem. Please ZIP and post or send:
1) The info from Help | About | Install Info
2) The .bld file with the Make Delphi step
3) A build log file
4) The Delphi project (.dpr and .dof, no source code files)

Thanks.

DavidMacLean
09-18-2006, 05:49 PM
Apparently I was drinking last Friday. Works this morning. Sorry to trouble you.

DavidMacLean
09-19-2006, 11:19 AM
No I was not drinking :)

This problem has returned.

No version info. Something is flakey. All versions again coming out zero.

I do not know what I am changing to upset this balance...

kinook
09-19-2006, 12:03 PM
Not sure. Please send #3 and #4. See the description of how the Make Delphi action sets versions at
http://www.visualbuild.com/Manual/delphiaction.htm

Are the documented steps being performed (perhaps the Delphi compiler is not including the version info for some reason?)?