Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class definition not found
Message
 
 
À
10/01/2000 13:54:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00315613
Message ID:
00315658
Vues:
27
Erik,

>>>Can you verify that the only difference is the container by using nearly the same code and verifying the difference:
>>>
>>>THISFORM.AddObject("ConGrid","cusGrid")
>>>THISFORM.Container.AddObject("ConGrid","cusGrid")
>>>
>>>
>>>I have never seen the parent container affect the available classes...
>>
>>The reason could be because controls Init methods fire prior Form Init method...
>
>Except that would cause a different error.

I have the similar situation, which I resolved using NewObject instead of AddObject. I was working on some project, which was not my from the beginnings. I found, that my collegue put SET CLASSLIB TO classlibname in Form.INIT method instead of Form.Load. I believe, we should always put settings either in BeforeOpenTables in DE or in Form.Load. But anyway, it was the problem... It could be the problem in this case also, because Container.Init fires before Form.Init. I'm just guessing about possible scenario.

Carlie, is it your situation?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform