Solved

Change path of BDE-alias at runtime

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

751 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