Variable scope

FFMan

Member
Licensed User
Longtime User
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
 
Top