Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object class invalid this container
Message
De
06/12/1998 18:51:36
 
 
À
05/12/1998 01:50:46
Bob Thickens
Empire Medical Review Services, Inc
Mequon, Wisconsin, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00164401
Message ID:
00164600
Vues:
33
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform