Neil,
I don't think it's the hidden causing the error. Your'e using a method as a property.
ex: Object.
Method.Method it has to be Object.
Property.Method
You shoudl be able to do
MyHandler = this.GetHandler
MyHandler.SomeEventHandlerMethod()
You could try adding an access method to oEventHandler and that may work.
>Hi All,
>
> Could someone please help me with this? I'm sure the answer is simple, but my brain has gone to sleep and I'd like to catch up with it.
>
> I have an object which stores a reference (in property oEventHandler) to an EventHandler object. I thought I'd hide the oEventHandler property, and allow access to it via a method, GetEventHandler() which just does a
>
>return this.oEventHandler
>
>
> But now when I want to call methods of the EventHandler object ...
>
>
> somevar = this.GetHandler.SomeEventHandlerMethod()
>
> ... I get an "unknown member GETTEVENTHANDLER" error.
>
> Before I go back and change all the references of GetEventHandler() to oEventHandler, is there another way of doing this?
>
>Many thanks,
>Neil
Roi
'MCP' Visual FoxPro
In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!