Reply to Thread

Post a reply to the thread: Request for using constants in Edit INI File

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?

 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 07-09-2013, 08:24 AM
    Allan Greis Eriksen

    Re: Request for using constants in Edit INI File

    Got it
  • 07-09-2013, 07:58 AM
    linder

    Re: Request for using constants in Edit INI File

    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
  • 07-09-2013, 07:47 AM
    Allan Greis Eriksen

    Request for using constants in Edit INI File

    The "Contents" of an "Edit INI File" function does not translate constants. Only variables.

    $NOVAXINI_DOUPDATENOVAX_OPDATERINGIGANG$ is a constant of "1"

    This work
    Code:
    [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.
    Code:
    [Update]
    DoUpdateNovax=$NOVAXINI_DOUPDATENOVAX_OPDATERINGIGANG$

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •