I am nearing the end of a project I have been working on and now have the task of how to handle multiple versions a Trial / Free version and a paying version.
It sure would be nice if the B4A development IDE allowed us to have #ifdef so we could define a global variable to the compiler and then use it to test what code to compile.
#ifdef _TRAIL_OR_TEST_VERSION <-- Would be defined somewhere in the IDE interface
... compile this code
#else
... compile this code
#endif
I do this in Visual Studio all the time
#ifdef _DEBUG
.. If compiling in Debug Mode include this code
#endif
I think this is something that Erel could add pretty easily - I noticed the compiler when generating the java code dumps all the comments I put in my code, so why can we not dump or include all the code in a #ifdef
Just a thought to make supporting multiple version easier.
BobVal
It sure would be nice if the B4A development IDE allowed us to have #ifdef so we could define a global variable to the compiler and then use it to test what code to compile.
#ifdef _TRAIL_OR_TEST_VERSION <-- Would be defined somewhere in the IDE interface
... compile this code
#else
... compile this code
#endif
I do this in Visual Studio all the time
#ifdef _DEBUG
.. If compiling in Debug Mode include this code
#endif
I think this is something that Erel could add pretty easily - I noticed the compiler when generating the java code dumps all the comments I put in my code, so why can we not dump or include all the code in a #ifdef
Just a thought to make supporting multiple version easier.
BobVal