Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stick to one hard drive, please!!

Status
Not open for further replies.

cold25

Programmer
Feb 11, 2002
41
US
I have created a Delphi database program that opens .dbf tables to a DBGrid. It also can create new .dbf tables, which it then displays nicely on the DBGrid. The problem is this: the computer has 2 hard drives, C & D. Even though I installed Delphi to the D drive, it demands I create the directory path
C:\Program Files\Common Files\Borland Shared\Data
and place the .dbf table that I plan on interacting with there, or it raises an exception when I open the existing table and run a query. Also, when I create a new .dbf table, it creates the new table on the C drive in the aforementioned directory. It seems that some pointer or something is making it interact with the aforementioned directory path on the C drive, even though I just want it to stick to the D drive. How can I make it just stick to the D drive? Can I do this through one of my components' properties, or where? Any help would be greatly appreciated, because I’m completely puzzled on this and it’s obviously a problem that affects everything.

Thanks,

cold25

 
Hi

Did you give the table the right DatabaseName (in the form 'D:\TempDir\') when creating it?

Ciao,
Geppo Darkson.
 
Thanks for your reply. Right after my post yesterday, I stumbled onto the DatabaseName property in the table creation section and noticed that it was set to nothing relevant to what the user would be doing. I figured that out, saw your reply and applied it to what DatabaseName is set to when I open a file, which was nothing at all.
It seems to work perfect now. Thanks for your help. I appreciate it a lot!

cold25
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top