Wish Support for Globals Sub in B4i

Discussion in 'iOS Bugs & Wishlist' started by Jack Cole, Nov 6, 2019.

  1. Jack Cole

    Jack Cole Active Member Licensed User

    It would be nice if b4i would support the Globals sub from a shared b4a Activity. Basically, it could be executed at the same time as Process_Globals. It would need to add the variables to the same variable space (as Process_Globals). Anyway, I work around this currently, but it would be a time saver and lead to better shared code. Thanks for considering it.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    B4i and B4J do not need this sub as its behavior will be identical to Process_Globals.

    You can do something like this:
    Code:
    Sub Process_Globals
     
    '....
    #If B4A
    End Sub

    Sub Globals
    #End If
     
    '....

    End Sub
     
  3. Jack Cole

    Jack Cole Active Member Licensed User

    Yes, that is what I do already. I end up having to duplicate Globals though to simulate how an Activity works on iOS.
     
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