Delphi Tips&Tricks News   Tips   .NET Software   VCL Software   Search   Contacts
Ultimate Pack Special Offer!


Share this page

Follow us
LinkedIn Blogspot Twitter Facebook

Related products
Ultimate Pack  hot!
iGrid Plotter  new!
Image Editor
Runtime Fusion
Form Designer
Object Inspector
Print Suite Pro
Commented Image
Delphi Toys
WinDowse
Delphi Bonus
TMS Scripter Studio
Form Designer VB
Form Designer .NET
Print Suite .NET
Gradient Controls .NET  new!

Related links
Win32.hlp online version
MegaDetailed.NET
Delphi to C#

Special
Free Software Promotion
Offers for Resellers

Hobby projects
cdtrrracks.com
books.storrre.com
in3steps.com
sovietphillumeny.com

Get directory from BDE-alias - Databases - Tips & Tricks - Greatis Delphi Pages

You can use GetAliasParams method of TSession:
Session.GetAliasParams(AliasName, StringList)
or DbiGetDatabaseDesc of DBIProcs:


uses  DBIProcs, DBITypes;
...
procedure TForm1.Button2Click(Sender: TObject);
var
  StringList: TStringList;
  DbDes: DBDesc;
begin
  StringList:=TStringList.Create;
  try
    Check(DbiGetDatabaseDesc(PChar(AliasName2.Text), @DbDes));
    with DbDes do
    begin
      StringList.Add('Driver Name: '+szDbType);
      StringList.Add('AliasName: '+szName);
      StringList.Add('Text: '+szText);
      StringList.Add('Physical Name/Path: '+szPhyName);
    end;
    ListBox2.Items:=StringList;
  finally
    StringList.Free;
  end;
end;
Related topics
Define BDE alias
Create DB file at runtime
Copy and delete table

For more
BDE Online Reference

Download source