×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

File xxx is not a database.

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.

RE: File xxx is not a database.

Possibly you have a statement in code somewhere like:

CODE -->

SET DATABASE TO gbcAddr.dbf 

Greg

RE: File xxx is not a database.

Taking Greg's suggestion a bit further, I would do a code references search across the entire application for every reference to gbcAddr.

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.

Since your project origin is 2013 I assume we talk about a VFP9 project, but do we?

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.

(OP)
Thanks, All. A useful tool which I hadn't yet discovered and can see I will use again! However, it didn't turn up anything (except sore eyes) smile This morning, though, I rebuilt the PJX from scratch and that seems to have done the trick.

Again, thanks, chaps.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close