File xxx is not a database.
File xxx is not a database.
(OP)
Experiencing a growing number of issues with a system I put in place in 2013 so I decided to start (almost) afresh. I started by copying the whole development folder to a new location (on the same PC) and have been rebuilding the forms using a new base ClassLib. I have also decided to make the step back to free tables - there were only a few fields that need to be adjusted to make this work - less than a dozen (phew!)
In the meantime, I do need to try to get the existing system running again until I can complete the rebuild. I thought all was well until I went to BUILD. The process generates an error message [File p:\figDev\Data\gbcAddr.dbf is not a database.] I'm not arguing with the statement - it's perfectly accurate! I just don't know why it thinks that particular DBF might have ambition beyond its standing. That file is in the database, I can open it/browse it from the PJX and, at least, the main form is loading data from it as expected. I have tried VALIDATE DATABASE RECOVER.
In the meantime, I do need to try to get the existing system running again until I can complete the rebuild. I thought all was well until I went to BUILD. The process generates an error message [File p:\figDev\Data\gbcAddr.dbf is not a database.] I'm not arguing with the statement - it's perfectly accurate! I just don't know why it thinks that particular DBF might have ambition beyond its standing. That file is in the database, I can open it/browse it from the PJX and, at least, the main form is loading data from it as expected. I have tried VALIDATE DATABASE RECOVER.
RE: File xxx is not a database.
CODE -->
Greg
RE: File xxx is not a database.
Clearly, gbcAdre.DBF is a table, not a database. So you must have some code somewhere that is treating the file as if it was a database. This might be a SET DATABASE, OPEN DATABASE, MODIFY DATABASE, or anuthing similar. A code references search should pin it down.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro articles, tips and downloads
RE: File xxx is not a database.
I just want to weigh in DBF stands for database file, though it always was a table before DBCs even were a thing. So it could be the error message that a legacy Foxpro version and its runtime would report for a corrupt table.
I second Mike, make use of the global search feature of VFP9 or if you use an older Foxpro IDE look for something you can use to search the whole project for how gbcAddr.dbf is used.
Chriss
RE: File xxx is not a database.
Again, thanks, chaps.