L luisbonfim New Member Licensed User Longtime User May 18, 2013 #1 dear Erel I am beginner in v4a I am not able to declare a variable that can be seen in all modules of the system. can u help me? 1 step: 'Activity module Sub Process_Globals 'These global variables will be declared once when the application starts. 'These variables can be accessed from all modules. Public VG_CODGAR As String End Sub but because forgiveness is not visible in other modules ... I think it's because I'm not declaring the correct place ... has specific module for this?
dear Erel I am beginner in v4a I am not able to declare a variable that can be seen in all modules of the system. can u help me? 1 step: 'Activity module Sub Process_Globals 'These global variables will be declared once when the application starts. 'These variables can be accessed from all modules. Public VG_CODGAR As String End Sub but because forgiveness is not visible in other modules ... I think it's because I'm not declaring the correct place ... has specific module for this?
C CidTek Active Member Licensed User Longtime User May 18, 2013 #2 When you make a reference to a global variable in another module you have to precede the variable name with its module name. main.VG_CODGAR for example if you declared the variable in the module named "main". Upvote 0
When you make a reference to a global variable in another module you have to precede the variable name with its module name. main.VG_CODGAR for example if you declared the variable in the module named "main".