"Cor Ligthert[MVP]" <no************@planet.nlwrote in message
news:AC**********************************@microsof t.com...
John,
Make it from private public, be aware however that you are violating
direct all rules of OOP than,.
Cor
Cor,
Simply making a private sub public doesn't violate OOP. You are allowed
to extend and republish a published interface and it won't break existing
code. Going the other way could break existing code. In addition, a sub
doesn't return anything, so unless there are byref arguments, no information
about the internal structure and state of the form object can be returned,
making it impossible for violation of encapsulation.
Mike
"John" <Jo**@nospam.infovis.co.ukschreef in bericht
news:ey*************@TK2MSFTNGP04.phx.gbl...
>Hi
How can I expose a sub outside a form so it is available globally?
Thanks
Regards