IMO, what you're asking is not good OOP design. The internal workings of the class should be hidden from the outside. By allowing the outside class to AddProperty on another class, you're exposing the inner workings.
>Hi All
>
>I am creating dll based on the Session Class.
>I don't wonna use custom class and use Hidden keyword.
>I want the ability to show AddProperty which is exist in the vfp session class, but after compiling to dll, only custom PEM are available.
>I know If I change the name of AddProperty to something else such as AddProp, I will see AddProp.
>
>Is there away to show AddProperty?
>
>
>Define Class Printer as Session OLEPUBLIC
> Function Myfunc
> Return "OK"
> Function AddProperty(ObjectName as Object,PropertyName as String,Value as Variant)
> This.AddProperty(ObjectName,PropertyName,Value)
> EndFunc
>EndDefine
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer