Android Question Conditional compilation

Discussion in 'Android Questions' started by yo3ggx, Jul 31, 2015.

  1. yo3ggx

    yo3ggx Active Member Licensed 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: Jul 31, 2015
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice