Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object class invalid this container
Message
From
06/12/1998 18:51:36
 
 
To
05/12/1998 01:50:46
Bob Thickens
Empire Medical Review Services, Inc
Mequon, Wisconsin, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00164401
Message ID:
00164600
Views:
30
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform