Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class definition not found
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Class definition not found
Miscellaneous
Thread ID:
00411392
Message ID:
00411392
Views:
29
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
Next
Reply
Map
View

Click here to load this message in the networking platform