PDA

View Full Version : Quoted ini file data



ctw
11-18-2009, 03:21 PM
I've run into an inconsistency between const data defined on the publish->settings->constants tab and the data that overrides it in an ini file.

If you try to define a constant in the form of a version number as:

_TARGET_VERSION "7.1.76.0" <-- Constant in build settings

and

[Constants]
_TARGET_VERSION="7.1.76.0" <-- Ini file

If you try to assign the const to a variable in a script that has been overriden by the ini file, you will get a "malformed number near '.76.0'".

The work around is to have the ini file look like this:

[Constants]
_TARGET_VERSION=""7.1.76.0"" <-- Extra quotes.

This is not necessarily a bug, but it could save some time if it was documented.

Thanks,
Casey.

Darryl
07-06-2010, 12:32 PM
Thank you, we'll look into that. REF: TU-23