Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class definition not found
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Class definition not found
Divers
Thread ID:
00411392
Message ID:
00411392
Vues:
28
Hi everybody,

I decided to create 2 classes from former forms (since they are generic) and add them to our classlibrary.
The main classlibrary is called wg.vcx
These 2 forms are based on classes from another classlib wgcontrols.vcx.

In our main program we set classlib to wgcontrols additive and to wg additive

This is the current BaseForm.Filter method (extract) (BaseForm is in wg.vcx, SetFilter and SetFilterNew also in wg.vcx, they are based on controls from wgcontrols.vcx)
*do form SetFilter with saveDS,theTable,localStr,.name  &&to localStr
  loSetFilter=newobject('SetFilter','wg.vcx','',saveDS,theTable,localStr,.name)
	else
*       	do form SetFilterNew with saveDS,theTable,localStr,.name  &&to localStr
		loSetFilter=newobject('SetFilterNew','wg.vcx','',saveDS,theTable,localStr,.name)
	endif
	if type('loFilter')='O'
  			loSetFilter.Show(1)
	endif	
Now then I hit Filter button, I get Error message: 'Class definition not found'.

How can I resolve this problem?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform