Page 1 of 1

Compiler variable in a dialog

Posted: Wed Jan 25, 2006 5:55 am
by Nicke
Hello,

In the license agreement dialog I want to put a compiler variable in a label caption like, "Licensee: #LICENSEE#"

I build the project in the command line with miabuild.exe and put LICENSEE=aCompany in the end of the string but the caption is not replaced with "aCompany". While compiling I can see that miabuild.exe has recognize the parameter so that's not the case.

Should it be possible to do this? If not, is it anohter way to send a parameter to fill a label caption with information?

Thanks in advance.
/Niclas

Posted: Wed Jan 25, 2006 8:10 am
by MichaelNesmith
Hi Niclas

Compiler variables are substituted in the script and project options dialog only. If you want your dialogs to also substitute, in your script first assign a variable to the compiler variable value, and then use that variable in the dialogs.

Posted: Wed Jan 25, 2006 10:07 am
by Nicke
Hi,

It worked very good :lol:

Thank you!