Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid/Dataenvironment problem
Message
 
To
21/07/2004 18:05:34
Dick Day
Madison County, Nebraska
Nebraska, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00926819
Message ID:
00926845
Views:
23
>I have a form with a grid. Several of the tables that are opened in the form's dataenvironment are added in the form init property via the addobject method. These must be opened this way because the names of the tables are stored in variables and may change depending upon which user opens the form.
>
>My problem is that the grid (which is bound to a static table, not created through addobject) will not open properly (empty white box). If I do not add tables to the environment via addobject, then it works fine.
>
>If I don't issue the...
>
>Thisform.dataenvironment.closetables()
>Thisform.dataenvironment.opentables()
>
>commands after adding the tables via addobject, then the grid opens fine but the tables I'm attempting to add to the dataenvironment don't get opened.
>
>Any suggestions?
>
>Thanks!
>
>Dick
>
>Dick Day Software Services
>83712 552nd Avenue
>Norfolk, NE 68701
>402/379-1606


I'm not sure, but maybe you need to requery the grid, or select the static table and then requery the grid. I always use queries which don't give me any problems.

nick

nick
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform