Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with dataenvironment Object
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00563626
Message ID:
00564752
Views:
13
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform