Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataEnvironment Question
Message
From
27/01/1999 15:31:55
 
 
To
27/01/1999 15:26:34
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00180996
Message ID:
00181004
Views:
27
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform