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