Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Conditional compilation
Thu, Feb 13 2014 10:49 AMPermanent Link

Matthew Jones

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.

/Matthew Jones/
Fri, Feb 14 2014 9:02 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.


Email timyoung@elevatesoft.com


<< 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.

Tim Young
Elevate Software