I have a Class oMenu that I have defined in a sub called cmdBox1_Click
I have another event called cmdBox2_Click tha I want to access the properties, etc from the object defined in cmdBox1_Click.
Any way to do this?
Example:
Sub cmdBox1_Click
Dim oMenu as New oClassMenu
'Set the property here...
oMenu.MenuSelection = "Edit"
End Sub
Sub cmdBox2_Click
'Want to access the property MenuSelection set from cmdBox1_ Click sub
msgbox( oMenu.MenuSelection)
End Sub
I have another event called cmdBox2_Click tha I want to access the properties, etc from the object defined in cmdBox1_Click.
Any way to do this?
Example:
Sub cmdBox1_Click
Dim oMenu as New oClassMenu
'Set the property here...
oMenu.MenuSelection = "Edit"
End Sub
Sub cmdBox2_Click
'Want to access the property MenuSelection set from cmdBox1_ Click sub
msgbox( oMenu.MenuSelection)
End Sub