Bug? B4A v5.02 Global Variables (Not Process Globals) accessible from other Activities/Modules

Discussion in 'Bugs & wishlist' started by fixit30, Jun 17, 2015.

  1. fixit30

    fixit30 Active Member Licensed User

    Boy, I've wasted the whole morning chasing my tail debugging my app. Eventually I decided to load it in v4.30 and found it wouldn't compile as I was mistakenly referencing an Activity Global rather than a Process Global.

    B4A v5.02 allows you to reference Activity Global variables from other Activities / Code Modules/ Service Modules and compiles. I guess this should not be the case?

    Attached is a sample project.

    Attached Files:

    lemonisdead and Erel like this.
  2. thedesolatesoul

    thedesolatesoul Expert Licensed User

    Can confirm.
    Private would hide them, but pure Dim leaves them exposed.
  3. fixit30

    fixit30 Active Member Licensed User

    Thankyou for the workaround!
  4. fixit30

    fixit30 Active Member Licensed User

    @Erel Will this bug be fixed?
  5. Erel

    Erel Administrator Staff Member Licensed User

    Yes, of course.
    fixit30 likes this.
  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