Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataEnvironment Question
Message
De
27/01/1999 15:31:55
 
 
À
27/01/1999 15:26:34
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00180996
Message ID:
00181004
Vues:
28
>Is it possible to add tables to the data environment of a screen programatically. The DE has newobject and addobject but I can't seem to get the syntax to work. If I place all the tables I want to use in the DE the form takes too long to open and if I just open the tables later they are not included in the DE and I must manually close them etc.

Normally, tables should not take much time to open. However, you can:
Thisform.DataEnvironment.AddObject("MyCursor","Cursor")
With Thisform.DataEnvironment.MyCursor
.Database="mydata.dbc"
.CursorSource="mytable"
*** etc.
Endwith
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform