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:
00668286
Vues:
21
Does it happen when running from the command line in Foxpro, or only when you try run the compiled exe.

If its only the compiled version, check which prg is set to main, (it will be bold), make sure it is the RunProg.
If not, right click it and choose Set Main

However if it happens also from the command line when doing something like

DO RunProg.prg

then see davids answer.

>Hi,
>
>I have three .Prgs : 1. BaseClass.Prg, 2. SubClass.Prg, 3. RunProg.Prg
>
>*-- BaseClass.prg
>DEFINE CLASS myProcess As Session
>PROC doProcess
>*: doing my Processes here
>ENDPROC
>ENDEFINE
>
>
>*-- SubClass.Prg
>DEFINE CLASS CustomProcess As myProcess Of BaseClass.Prg
>PROC doProcess
>*-- running custom code
>ENDPROC
>ENDEFINE
>
>
>*-- RunProg.Prg
>Local loProc
>loProc = NewObject("customProcess", "SubClass.Prg") && <>loProc.DoProcess()
>.
>.
>.
>
>My Problem is, I get "Class Definition 'CustomProcess' is not Found'" error at the object initilization.
>
>If I set procedure to both baseclass and subclass and use a createObject("customprocess") function , everything is fine. How can I use NewObject() function without generating this error?
>
>
>TIA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform