>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
> loSetFilter=newobject('SetFilter','wg.vcx','',saveDS,theTable,localStr,.name)
> else
>* do form SetFilterNew with saveDS,theTable,localStr,.name
> 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.
Did you try CREATEOBJECT instead?
--sb--