djveleno Active Member Licensed User Longtime User Oct 6, 2013 #1 In the project, the variables section Process_Globals is the inscription: 'These variables can be accessed from all modules. In fact, the declaration of a variable (Dim Score As Int) is not accessible from another module, where am I wrong?
In the project, the variables section Process_Globals is the inscription: 'These variables can be accessed from all modules. In fact, the declaration of a variable (Dim Score As Int) is not accessible from another module, where am I wrong?
klaus Expert Licensed User Longtime User Oct 6, 2013 #2 If you declare Dim Score As Int in the Main module you nedd to add the module name as a prefix to the variable when you want to access it from another module. In your case : Main.Score = something Best regards. Upvote 0
If you declare Dim Score As Int in the Main module you nedd to add the module name as a prefix to the variable when you want to access it from another module. In your case : Main.Score = something Best regards.