General information
Category:
Coding, syntax & commands
Title:
DBF data placed in a grid not showing
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only