Problem passign global variables

zxxdaro

Member
Licensed User
Longtime User
In the attached program there are three modules Main second and third.
Main calls second which calls third. Third passes values to second
which are set up in the Process Globals section of the modules in
these variables
Dim firstToPass As String
Dim secondToPass As String

They do not arrive at their destination. What am I doing wrong?

I am still a relative beginner so I expect it is something simple but I cannot find what it is.
 

Attachments

  • testprogram.zip
    1,023 bytes · Views: 138

NJDude

Expert
Licensed User
Longtime User
You haven't posted the whole project, you have to do this, from the IDE, click on File -> Export as ZIP

To read Process Globals variables you have to prefix them, for example, from the Second activity you should do something like:
B4X:
Main.FirstToPass = "Something"

Then again, post your whole project to better understand what you are doing.
 
Upvote 0
Top