Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 719
  • Last Modified:

Change path of BDE-alias at runtime

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
trinity050797
Asked:
trinity050797
1 Solution
 
mivCommented:
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
 
trinity050797Author Commented:
Thanks a'lot
0
 
Robert GillandCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now