|Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread|
|Messages 1 to 2 of 2 total|
|Thu, Feb 13 2014 10:49 AM||Permanent Link|
I worked out a hack to do conditional compilation.
I was wanting to have a normal web application but I need a special mode for email
validation, so the URL is /validate.html?blah=1. I wondered how I could do this and
keep the same forms, and started an experiment but it was a lot easier than I
thought. All I did was save the current project as "validate" and then I changed
the Application Title in the project settings. In the code I can just look at the
title and know that if it is one, then the mode is changed, and to behave
differently (thus not actually conditional compiled, but run-time, but the compile
changes a variable value). Just compile both projects and they are using the same
Not sure if I'll use this long term, but handy option.
|Fri, Feb 14 2014 9:02 AM||Permanent Link|
Tim Young [Elevate Software]
Elevate Software, Inc.
<< I worked out a hack to do conditional compilation. >>
Interesting. I'll be adding compiler defines in EWB 2.0 since they'll be
needed for some of the design-time code.