I apologize that this is such an elementary question.
Our VB6 project group contains 6 projects plus a user interface project containing all application forms.
We generate a unique identifier (gstrUniqueImportUuid) in the code for one of the forms, which must be presented to the class in another project in the project group.
I tried to declare this variable a global variable in the Common.bas module as part of the main user interface project, for example:
Option Explicit Public gstrUniqueImportUuid As String
Then I assign the value gstrUniqueImportUuid in a form that works fine.
But then, when I try to use this value of a global variable in one of the other projects in the group, this project will not compile - "the variable is not defined."
What am I doing wrong?
Thanks.
source share