PDA

View Full Version : Request for using constants in Edit INI File



Allan Greis Eriksen
07-09-2013, 07:47 AM
The "Contents" of an "Edit INI File" function does not translate constants. Only variables.

$NOVAXINI_DOUPDATENOVAX_OPDATERINGIGANG$ is a constant of "1"

This work

[Update]
DoUpdateNovax=%DOUPDATENOVAX%
Where %DOUPDATENOVAX% has been set to $NOVAXINI_DOUPDATENOVAX_OPDATERINGIGANG$

However it would be nice to be able to just use the constant directly in the "Contents" section.

[Update]
DoUpdateNovax=$NOVAXINI_DOUPDATENOVAX_OPDATERINGIG ANG$

linder
07-09-2013, 07:58 AM
Allen,

..."Wherever the constant appears in your source file, the preprocessor replaces it by its value. So, for instance, every "$TRUE$" in your source code will be replace by 1. The compiler will only see the value 1 in your script code (If statement and Set Variable function only), not "$TRUE$"..."

You can't use constants in the other functions.

Friedrich

Allan Greis Eriksen
07-09-2013, 08:24 AM
Got it :)