Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple way to combine two classes?
Message
 
 
À
12/06/2009 13:39:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01405587
Message ID:
01405600
Vues:
80
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform