Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADDOBJECT
Message
De
15/09/1999 11:55:53
Steven Dyke
Safran Seats USA
Texas, États-Unis
 
 
À
15/09/1999 11:35:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00264974
Message ID:
00265016
Vues:
27
John,

I am trying to add tables to the data environment of a form. This needs to be done dynamically since the number of tables and their names are customizable by the user. I really don't have a problem with AddObject creating a cursor as much as the rest of the code to attach the tables to the data environment. This is my Code which will not work.

Dime gsMyCursor(5)
For myx = x To ALEN(gnTables)
With ThisForm.DataEnvironment
.AddObject(gsMyCursor(myx), "cursor")
.gsMyCursor(myx).DataBase = "c:\MyFolder\Apps\Church Books\churchdata.dbc"
.gsMyCursor(myx).CursorSource = gaTables(myx)
.CloseTables()
.OpenTables()
EndWith
Next myx
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform