Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading details from BDE Alias and ODBC connections

Status
Not open for further replies.

StevenK

Programmer
Jan 5, 2001
1,294
GB
Can anyone provide me with a simple code example of how I might be able to read values from BDE Alias's and ODBC connections set up on a PC ?
Having read the information from a BDE alias how wise is it for me to modify values (i.e. a path or connection criteria) ?
Thanks in advance,
Steve
 
Hi Steve!

You should use 'Params' parameter of TDatabase object.
This is a TString parameter. You can read and write parameters of BDE aliases with it.

For example:
------------
Database1.Connected := True;
Edit1.Text:= Database1.Params.Values['PATH'];

Best regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top