Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Here's an easy one...
Message
 
To
20/06/2001 14:08:05
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00521589
Message ID:
00521614
Views:
13
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!
Previous
Reply
Map
View

Click here to load this message in the networking platform