>Hi all-
>
>I'm using addobject to add a grid (addoboject("Congrid","cusgrid"). It worked fine until I needed to add the grid to a container instead of a form. Now I get "Class Definition "cusgrid" not found". The classlibs are set properly to include the classlib where the grid is located. Any ideas?
>
>Carlie
The simplest way to avoid this behavior - use the NewObject method instead of AddObject, if, of course, you're using VFP6.0. In this case you don't need to SET CLASSLIB at all.
If it's not broken, fix it until it is.
My Blog