Solved

Change path of BDE-alias at runtime

Posted on 1997-05-07
3
671 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 30 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now