Hi, Hugo
It looks like I wasn't clear enough. I'm sorry and let me try again:
When I instantiate the exe from command window, with x = CreateObject("TestProj.TestClass"), it works ok, and it exposes its public properties and methods. It doesn't matter at this time if the properties are accessed directly or not. The problem lies elsewhere. The exe shows a form. User can interact with that form, and I need a way to read the values the user wrote in the interface.
I was thinking to set the controlsource of the controls to the public properties of the OLE class, like .ControlSource = "TestClass.MyPublicPEM", but this is not possible, because there is no TestClass instatiated! How to reference the ole class from the instantiated exe?
>Hi Grigore,
>
>
>I am not sure if I understand your question, just wanted to say that I do not use public properties, I always use protected properties and add a pair of get and set functions which I use to access or change it's values, although it is much more code, I find it better for me, for example:
Grigore Dolghin
Class Software.