Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with dataenvironment Object
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00563626
Message ID:
00564752
Vues:
14
>>I've created a custom dataenvironment class and I'm trying to add it to my form with: thisform.addobject("oDataenv","Loadtables"), where "Loadtables" is the my custom class name. It return an error message "Object Class is Invalid for this container". Can anybody help me? Yes I know somebody will.
>>
>>Thanks in advance,
>>
>>Enmanuel
>
>Instead of adding DE to the form add custom property with the reference to the new DE
Thisform.Addproperty("oDataenv", Createobject("Loadtables"))
Thanks Sergey, It worked. Now, this may be the subject of another thread but how I add the tables, I tried the same method but didn't work.
I'm a mixture of Albert Einstein and Arnold Schwarzenegger. The only trouble is that I got Einstein's body and Schwarzenegger's brain
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform