F FFMan Member Licensed User Longtime User Mar 15, 2012 #1 I'm a long-time basic programmer proficient in VB and zbasic and moving into some Android dev with b4a and liking it. There are some differences to understand, and i'm battling with variable scope. The beginners guide says if you declare variables in Process_Globals then these are visible from all modules. Well i can only make them visible if i preface them with Main. Is this the correct way to use them or am i missing something ? thanks
I'm a long-time basic programmer proficient in VB and zbasic and moving into some Android dev with b4a and liking it. There are some differences to understand, and i'm battling with variable scope. The beginners guide says if you declare variables in Process_Globals then these are visible from all modules. Well i can only make them visible if i preface them with Main. Is this the correct way to use them or am i missing something ? thanks
NJDude Expert Licensed User Longtime User Mar 15, 2012 #2 ... Well i can only make them visible if i preface them with Main Click to expand... Yes, that is correct you have to add the name of the activity/module where you've created the variables. Upvote 0
... Well i can only make them visible if i preface them with Main Click to expand... Yes, that is correct you have to add the name of the activity/module where you've created the variables.