Re:BDE Alias path
Quote
Breno wrote:
> Hi, people.
> I'd like to know if there's a function that, given a BDE alias, returns its
> path.
> In my application I have an alias SISVEST. Since the tables can be put in
> other directory when the user installs the program, I need a way to know
> exactly where the tables were copied to.
> Thanx for the help.
> Breno.
> bren...@nutecnet.com.br
I think the following will help. If you have Delpi 2.0, take a look at
the BDE32.hlp. It should be installed to:
"C:\Program Files\Borland\Common Files\BDE\BDE32.HLP"
FullName:=fDbiFormFullName(Table1);
function fDbiFormFullName(Tbl: TTable): String;
var
Props: CurProps;
begin
Check(DbiGetCursorProps(Tbl.Handle,Props));
SetLength(Result, DBIMAXPATHLEN);
Check(DbiFormFullName(Tbl.DBHandle, PChar(Tbl.TableName),
Props.szTableType, PChar(Result)));
end;
Joe
--
Joe C. Hecht
(Borland Delphi Developer Support)
Join the Delphi Online Discussion Forum at
http://www.borland.com/techsupport/delphi/