Process Globals not working?

DevBaby

Active Member
Licensed User
Longtime User
I declared (Dim) a simple string field "TestString" in my main module under "Process Globals"

I added another module, but it does not recognize the "TestString" variable I created in the Main Module when I try to assig a value. The variable shows up as red in the second module. This also happens in the opposite direct (declaring the variable in the second module under "Process Globals", the main module does not recognize the variable.
 

rfresh

Well-Known Member
Licensed User
Longtime User
You have to access the Main Activity variable in your second Activity like this:

Main.TestString = "test"

Are you doing that? If so, then something else is wrong.
 
Upvote 0

johnB

Active Member
Licensed User
Longtime User
All Process Globals not showing

I have 8 string variables defined in Main under Process_Globals. When I try to refer to them in another module using Main."string_name" only 4 of the string variables are visible and the ones not visible give a compiler error.

Thanks for any advice/help
 
Upvote 0

johnB

Active Member
Licensed User
Longtime User
Sorry, for the insufficient post

I've found the stupid error

A double declaration in a subsequent Sub of the Main Module. I didn't originally need them as Global variables

Thanks for your prompt reply
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…