mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 04:09:30 +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 := '';
|
||||
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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user