* aaccess also for treginifile.

git-svn-id: trunk@8169 -
This commit is contained in:
marco 2007-07-27 11:18:55 +00:00
parent a093c52815
commit 6a133f11f3
2 changed files with 12 additions and 0 deletions

View File

@ -13,6 +13,16 @@ begin
fPath := '';
end;
constructor TRegIniFile.Create(const FN: String;aaccess:longword);
begin
inherited Create(aaccess);
fFileName := FN;
if fFileName<>'' then
fPath := fFileName + '\'
else
fPath := '';
end;
procedure TRegIniFile.DeleteKey(const Section, Ident: String);
begin
if not OpenKey(fPath+Section,true) then Exit;

View File

@ -14,6 +14,7 @@ Uses
Windows,
{$endif XMLREG}
Classes,
inifiles,
SysUtils;
{$I regdef.inc}
@ -132,6 +133,7 @@ type
fPath : String;
public
constructor Create(const FN: string);
constructor Create(const FN: string;aaccess:longword); overload;
function ReadString(const Section, Ident, Default: string): string;
function ReadInteger(const Section, Ident: string;
Default: Longint): Longint;