Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding tables to a custom DE object
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Adding tables to a custom DE object
Miscellaneous
Thread ID:
00564785
Message ID:
00564785
Views:
49
I got the following code:

Thisform.addproperty("oDataEnv",createobject("Loadtables"))

Thisform.oDataenv.addproperty(aTables(2),createobject("cursor"))
With Thisform.oDataenv.(aTables(2))
.cursorsource = aTables(2)
.Alias = "Accounts"
.Order = "Account"
Endwith

Thisform.oDataenv.Opentables

This is suppossed to create a DE object and add a table from the array "aTables". The "oDataenv" container is created and the table object is added to the container but when I try to manipulate the data in the table I get an "alias does not exist" error message. Also when I try to access the data through the data session dialog in the main VFP window it doesn't appear in the window's data sessions list.

Hope somebody could help me.


Enmanuel
I'm a mixture of Albert Einstein and Arnold Schwarzenegger. The only trouble is that I got Einstein's body and Schwarzenegger's brain
Next
Reply
Map
View

Click here to load this message in the networking platform