Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using .PRG Classes
Message
 
À
16/11/2000 13:36:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00442305
Message ID:
00442927
Vues:
7
>SET PROCEDURE TO parentclass.prg, childclass.prg
>oChild = CREATEOBJECT("childclass")
>
>** or
>SET PROCEDURE TO parentclass.prg
>oChild = NEWOBJECT("childclass","childclass.prg")


What I'm trying to do is:

oChild = NEWOBJECT("ChildClass", "ChildClass.prg")

Where ChildClass is defined as:

DEFINE CLASS ChildClass AS ParentClass

ChildClass can't be created because it doesn't know where to find ParentClass (which is in a different .PRG, like ParentClass.prg.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform