Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 2 of 2 total |
Conditional compilation |
Thu, Feb 13 2014 10:49 AM | Permanent 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 code. Not sure if I'll use this long term, but handy option. /Matthew Jones/ |
Fri, Feb 14 2014 9:02 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Matthew,
<< 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 www.elevatesoft.com |
This web page was last updated on Friday, March 29, 2024 at 03:30 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |