Accessing a classes attributes
I have a class with attributes I want other classes to access(clsAll) through property methods. I have 3 other classes(forms) that I want to access the attributes that have been instantiated and given values in clsAll by the first form class. The problem is that the second form class can only access attributes of clsAll by instantiating it again thereby initialising the attributes again and losing the values they already contain.
Help!!!!!!!!!
Thanks
erimus
Re: Accessing a classes attributes
Thanks Edneeis for the reply. What I mean by attributes are the values that can be returned by a property get method. I need guidance on how I can access the same instance of clsAll from another class without having to instantiate it again.
Thanks
Re: Accessing a classes attributes
Thanks Edneeis. I thought of passing attributes to another form as suggested but this did not look to OO to me. So it occurred to me that overriding the New() method with New(arg1, arg 2, arg3) where arg(n) is the attributes I want passed to another form. This worked a treat, and I am very greatful to you for pointing me in this direction.