Does anyone know how to pass argument between two forms? Thanks!
Printable View
Does anyone know how to pass argument between two forms? Thanks!
There isn't a formal way to do it. You have to use global variables.
there is a way.
You can work with property. Example
Private mstrMyArgument as string
Public Property Let MyArgument(Value as String)
mstrMyArgument=Value
End Property
Public Property Get MyArgument() as string
MyArgument=mstrMyArgument
End Property
statmend to set
form1.MyArgument="Hello world"
Form1.Text1=Form2.Text1
Form1.caption = text1