Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Change path of BDE-alias at runtime

Posted on 1997-05-07
3
Medium Priority
?
696 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
[X]
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
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

670 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