Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class Definition not Found!
Message
 
 
To
12/06/2002 15:35:02
Sony Joseph
Dovenmuehle Mortgage Inc
Schaumburg, Illinois, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00667608
Message ID:
00667758
Views:
23
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
Previous
Reply
Map
View

Click here to load this message in the networking platform