Carlie,
What version of VFP are you using? If 6.0, replace CreateObject with NewObject function and AddObject with NewObject method. Look at Help for more details.
HTH
>Nadya-
>Although the container init fires before the form init, the grid is only added after the form has been instantiated, including the container. I think this error may be indicative of a larger issue with pathing in the app. The classlibs are set in the main program, well before the form is instantiated. Also, when I attempted to correct the error by adding another set classlib to...additive, another error "Alias already in use" occurred, indicating that the classlib was in use.
>
>Carlie
If it's not broken, fix it until it is.
My Blog