Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Change path of BDE-alias at runtime

Posted on 1997-05-07
3
Medium Priority
?
710 Views
Last Modified: 2010-04-06
I have a Delphi 2.0 application and would like it to change the path of an existing BDE-alias before it opens the databases. How can I do this ??
0
Comment
Question by:trinity050797
3 Comments
 
LVL 1

Accepted Solution

by:
miv earned 60 total points
ID: 1335985
It´s much more easy to drop the alias handling from the BDE.
Just set a path on your database component instead of using an alies. That way you can change the path at run-time, and your installation program does not have to create an alias.
0
 

Author Comment

by:trinity050797
ID: 1335986
Thanks a'lot
0
 

Expert Comment

by:Robert Gilland
ID: 1335987
Use the TDatabase component at the main
form of your application. Use Ini files to
store information on current and past directories
so you can swap directories at any time during run time.
Initialise the TDatabase AliasName and Directory Name
at the FormCreate event of your Main form.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

886 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