>I have code in the init method of a form:
>THISFORM.ADDOBJECT("oFILE","FILE")
>where "FILE" is a 'custom' class.
>I get the error 'object class is invalid for this container'
>the code worked in 5.0a and actually worked in 6.0 when running from the project manager where the calling program said simply 'do form xyz.' When I create the app or the exe it blows up. I know one is not supposed to add a form to a class but this is adding a class to a form. Any ideas? TIA Bob
Both FILE and FILE() are VFP keywords, which makes them an
extremely risky choice for class names. This is the source of your problem.
Erik Moore
Clientelligence