How can you share variables between modules in visual basic 6??
Declare the variable as Public: In Module1: Code: Public myvar As Integer In Module2: Code: Public Sub MySub() Debug.Print Module1.myvar End Sub
Public myvar As Integer
Public Sub MySub() Debug.Print Module1.myvar End Sub
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You". -- Linus Torvalds
Forum Rules