Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Using a local Database

Posted on 1998-04-24
1
138 Views
Last Modified: 2010-04-06
Can I create and use a database in the same directory as my application and use it (only from my application) with the database components, ie I dont want to go through the Interbase server etc.

Darren
0
Comment
Question by:Dazza051197
1 Comment
 
LVL 2

Accepted Solution

by:
kjteng earned 50 total points
ID: 1336912
You can use local database such as paradox or dbase file.
To use data files stored in program directory, set the DatabaseName property of the relevant table component to
extractFilePath( paramStr(0)) at RUN TIME as follows:

table1.active:= false;
table1.DatabaseName:= extractFilePath( paramStr(0));
table1.tablename:= 'tableXXX.db';
table1.active:= true;

0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question