sohummisra
Broken In
I'm using VB6 to make this program and I have this minor problem that is very difficult to search for on the net (because the solution is so simple--I just don't know it or it is eluding me). Basically I have a public procedure which contains a parameter. Let's just call it:
Now I want to use the same parameter in a user-generated click event on a command-button. I was wondering if there is anyway to refer to that variable (in the the Sub X) from within the other procedure and how to do this. I was trying things like X.username but it didn't work. :S[/code]
Code:
Public Sub X(Byval username As String)
blah blah
End Sub
Now I want to use the same parameter in a user-generated click event on a command-button. I was wondering if there is anyway to refer to that variable (in the the Sub X) from within the other procedure and how to do this. I was trying things like X.username but it didn't work. :S[/code]