Global Variable cannot be accessed from another Modules?

vndnguyen

Member
Hi all,

I have problem with the variable.

According to B4A, the global variables (declared in Process_Globals sub) can be accessed from all modules. But in fact I cannot access them from other Activity. :(

Any help would be appreciated.
Thank you.

:sign0104:
 

Cableguy

Expert
Licensed User
Longtime User
You must preceed the variable name with the module in wich it was DIMmed.
ie, you DIMmed a var called MyVar in Main Process_Globals

Then you access it with Main.MyVar in every other module that is NOT the one it was DiMmed on
 
Upvote 0
Top