Declare on other forms?

Posts 1–3 of 3 · Page 1 of 1
Declare on other forms?
Can anyone tell me how to declare items on different forms for example on Form 1 i do "Dim MeOn As Integer" or "Public MeOn As Integer"
and I want that variable on Form 2 how would I declare that?
Global scope, propriety, or pass it as a parameter to the new form constructor.
If it's public you can just say in form2:
Code:
sub Omg()
msgbox(form1.MeOn).tostring
end sub
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us