mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 15:09:26 +02:00
tdbf: using project targetfile directory, issue #35301, from errno
git-svn-id: trunk@60817 -
This commit is contained in:
parent
197014d2a1
commit
181ba313a6
@ -16,7 +16,7 @@ unit RegisterDBF;
|
||||
interface
|
||||
|
||||
uses
|
||||
Classes, SysUtils, LResources, Dbf, LazarusPackageIntf, PropEdits;
|
||||
Classes, SysUtils, LResources, Dbf, LazarusPackageIntf, PropEdits, MacroIntf;
|
||||
|
||||
resourcestring
|
||||
dbfsAllDbasefiles = 'DBase Files';
|
||||
@ -60,9 +60,17 @@ begin
|
||||
Tdbf, 'TableName', TDbfFileNamePropertyEditor);
|
||||
end;
|
||||
|
||||
function TargetPath: string;
|
||||
begin
|
||||
Result:='$TargetFile()';
|
||||
IDEMacros.SubstituteMacros(Result);
|
||||
Result:=ExtractFilePath(Result);
|
||||
end;
|
||||
|
||||
procedure Register;
|
||||
begin
|
||||
RegisterUnit('DBF',@RegisterUnitDBF);
|
||||
DbfBasePath:=@TargetPath;
|
||||
end;
|
||||
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user