Android Question Conditional compilation

yo3ggx

Active Member
Licensed User
Longtime User
Hi,

I'm using B4A registered version 5.02 and I'm trying to use conditional compilation feature.
I've defined two build configurations: PaidFull and AdBased

The simple code sequence is the following:

#if AdBased
sPackageName = "aa.bbb.ccc"
#else if PaidFull
sPackageName = "aa.bbb.cccpro"
#end if


Even when in IDE, the two code lines between the conditions remains grayed out, text is not automatically formatted using capitals and when trying to compile, sPackageName does not get any value.

I am missing something?

Thank you,
Dan



Late edit: My mistake. It was a confusion between configuration name and configuration symbols.
 
Last edited:
Top