>Can I have a class that can modify a textbox class and a spinner class
>at the same time ?
>I want to use a new property or the same method in both classes.
>
>For example:
>
>I want the lostfocus event execute the same thing for both classes, without
>using an external function, and I want to declare a new property that can
>be used in both too.
VFP doesn't directly support multiple parent classes like some other OO languages do (I forget the term for this).
What you can do is have a form method that is called by both objects or some other global object with common methods. Have each LostFocus method call this common method. I know this isn't exactly what you want but it works well.
This would mean that you would also need to add properties to both class trees.
-Doug-
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only