Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding tables to a custom DE object
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Adding tables to a custom DE object
Divers
Thread ID:
00564785
Message ID:
00564785
Vues:
50
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform