Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple way to combine two classes?
Message
 
 
To
12/06/2009 13:39:18
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01405587
Message ID:
01405600
Views:
79
Have you tried Jim Nelson's Property replacement? Does it allow to simply isolate new methods/properties?

>>Hi everybody,
>>
>>I have a class with properties and methods I need to incorporate into the form I'm using (which is based on another class and I need to preserve it). What would be the simplest way to add them?
>>
>>Thanks.
>
>
>Create a Form property called oMyObject, then in the Load() or Init() event:
>
>
> this.oMyObject=CreateObject("MyClass")
>
>
>then you can use it thoughout the form like this:
>
>
>thisform.oMyObject.SomeProperty=999
>thisform.oMyObject.SomeMethod()
>
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform