Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DBF data placed in a grid not showing
Message
From
11/04/2000 11:01:38
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
DBF data placed in a grid not showing
Miscellaneous
Thread ID:
00358058
Message ID:
00358058
Views:
46
My VFP 6.0 application has the following overall structure

Setup.pgm (Close Database, Use a DBF, Do Browse_Form)
|
Browse_Form (Scroll thru the DBF in a Grid. Radio Buttons to chg key. Buttons for Add, Chg, and Exit)
| |
| +---------------------------------------------------------------------------------------------------------------------+
| |
Chg_Form (Chg fields. Buttons for Apply Chg, Reset, and Exit (Apply not tested yet)) |
|
Add_Form (Add a record. Buttons for Apply Add, Clear, and Exit (Apply not tested yet))

The problem is that the Grid displays empty. I have tried many different tacts but with no positive results.

Sometimes, the Browse_Form flashes the data momentarily, then comes up unpopulated. When this happens, if I click the 'Chg' button, the Chg_Form comes up populated.

Sometimes, (like now), there is no flash and the Grid is unpopulated. When this happens, if I click the 'Chg' button, a message pops up telling me that the DBF is not an object. The data window shows no files open.

If, instead of running the Setup program, I type the commands into the Command window, I do not have the problem. Alternatively, if I SET STEP ON within the Setup program, again the problem disappears.

I believe the problems began when I put a !COPY command into the Setup program (subsequently removed) to restore the DBF from a copy. This was done to let me play with the DBF via the Adds and Deletes, and then have it restored the next time through.

Thanks in advance for any possible help.
Reply
Map
View

Click here to load this message in the networking platform