Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy classes from other classlib
Message
 
À
04/12/2001 09:24:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00589229
Message ID:
00589380
Vues:
12
>Hi all,
>
>is there a trick to copy a class from a classlib to another classlib ??
>
>ex.
>
> classlib.vcx copy anotherclasslib.vcx
> -myform -------> -sameformAsmyform
Jimmy,

Whenever you =find yourself wanting to copy a class to another library, you should very carefully consider subclassing instead. Copying stuff in OOP is usually a hold over from other environments where subclassing is not an option.

You can create a new classlib and then create a class in it that is subclassed from your myForm class. This new class would inherit all of the properties and methods form myForm.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform