How can you share variables between modules in visual basic 6??
Printable View
How can you share variables between modules in visual basic 6??
Declare the variable as Public:
In Module1:
In Module2:Code:Public myvar As Integer
Code:Public Sub MySub()
Debug.Print Module1.myvar
End Sub