Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NewObject & Programmatically defined classes
Message
De
06/09/2001 05:38:09
 
 
À
06/09/2001 05:27:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00553005
Message ID:
00553010
Vues:
16
Marian,

Try:
o1=NEWOBJECT("cls1", "ClassDef1.PRG", "TESTCLS.APP")
o2=NEWOBJECT("cls2", "ClassDef2.PRG", "TESTCLS.APP")
HTH
>I'd like to create APP with a programmatically defined classes. Each class is in separated PRG.
>
>In file ClassDef1.PRG is DEFINE CLASS cls1 AS CUSTOM
>In file ClassDef2.PRG is DEFINE CLASS cls2 AS CUSTOM
>
>Then I creating project TESTCLS, add ClassDef1.PRG and ClassDef2.PRG. ClassDef1.PRG is marked as Set Main. Build project.
>
>Now I want create object:
>o1=NEWOBJECT("cls1","TESTCLS.APP") o.k.
>o2=NEWOBJECT("cls2","TESTCLS.APP") Error "Class definition Cls2 is not found"
>o2=NEWOBJECT("cls2","ClassDef2.fxp","TESTCLS.APP") Error
>
>When I use VCX, everythink is o.k.
>ClassDef1.vcx has cls1 class and ClassDef2.vcx has cls2 class
>
>x=NEWOBJECT("cls1","classdef1","TESTCLS2.APP") o.k.
>y=NEWOBJECT("cls2","classdef2","TESTCLS2.APP") o.k.
>
>Why ? How to use programmatically defined classes from APP
>
>MarianL
Daniel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform