Once more… I am really learning here, so here’s one more of my (probably basic) questions about developing an application :
I would like to have two versions of my app. with different sets of features.
Version “Light” with features ABCD, and version “PRO” with features BCDE
I suppose having two projects, and coding and maintaining most of the things two times is the WRONG way to go.
What’s the best approach ? How to do it with xojo ?
Create a constant called LITE , set the value to FALSE and run the code
Stop the code, change the value to TRUE and run it again.
#if LITE works just as well as if LITE
but as pointed out, the #if version means that you can actually prevent chunks of code being in the app at all when compiled.
That means that people cannot ‘turn on’ extra features by hacking your code.
(
In theory they could by amending the compiled code behind