mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-09 17:06:04 +02:00
* aaccess also for treginifile.
git-svn-id: trunk@8169 -
This commit is contained in:
parent
a093c52815
commit
6a133f11f3
@ -13,6 +13,16 @@ begin
|
|||||||
fPath := '';
|
fPath := '';
|
||||||
end;
|
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);
|
procedure TRegIniFile.DeleteKey(const Section, Ident: String);
|
||||||
begin
|
begin
|
||||||
if not OpenKey(fPath+Section,true) then Exit;
|
if not OpenKey(fPath+Section,true) then Exit;
|
||||||
|
@ -14,6 +14,7 @@ Uses
|
|||||||
Windows,
|
Windows,
|
||||||
{$endif XMLREG}
|
{$endif XMLREG}
|
||||||
Classes,
|
Classes,
|
||||||
|
inifiles,
|
||||||
SysUtils;
|
SysUtils;
|
||||||
|
|
||||||
{$I regdef.inc}
|
{$I regdef.inc}
|
||||||
@ -132,6 +133,7 @@ type
|
|||||||
fPath : String;
|
fPath : String;
|
||||||
public
|
public
|
||||||
constructor Create(const FN: string);
|
constructor Create(const FN: string);
|
||||||
|
constructor Create(const FN: string;aaccess:longword); overload;
|
||||||
function ReadString(const Section, Ident, Default: string): string;
|
function ReadString(const Section, Ident, Default: string): string;
|
||||||
function ReadInteger(const Section, Ident: string;
|
function ReadInteger(const Section, Ident: string;
|
||||||
Default: Longint): Longint;
|
Default: Longint): Longint;
|
||||||
|
Loading…
Reference in New Issue
Block a user