Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class Definition not Found!
Message
 
 
À
12/06/2002 15:35:02
Sony Joseph
Dovenmuehle Mortgage Inc
Schaumburg, Illinois, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00667608
Message ID:
00667758
Vues:
25
Sony,

It works fine for me. Once you fix the typo that you have that's preventing the PRGs from compiling. You need ENDDEFINE instead of ENDEFINE. I also added a dodefault():
*-- BaseClass.prg
DEFINE CLASS myProcess As Session
PROC doProcess
*: doing my Processes here
? program()
ENDPROC
ENDDEFINE

*-- SubClass.Prg
DEFINE CLASS CustomProcess As myProcess Of BaseClass.Prg
PROC doProcess
*-- running custom code
? program()
dodefault()
ENDPROC
ENDDEFINE


*-- RunProg.Prg
Local loProc
loProc = NewObject("customProcess", "SubClass.Prg") 
loProc.DoProcess()
I had all three programs in the current directory. Running VFP7SP1.

>My Problem is, I get "Class Definition 'CustomProcess' is not Found'" error at the object initilization.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform