Leider bringt er immer noch die Fehlermeldung
Delphi-Quellcode:
var ini: TIniFile;
begin
ForceDirectories(ExtractFilePath(ParamStr(0))+'Settings');
with TiniFile.Create(ExtractFilePath(ParamStr(0))+'Settings\'+'config.dat') do //create iniFile
try
Form1.Width := ini.ReadInteger('POSITION', 'WIDTH', 0); //load form settings
Form1.Height := ini.ReadInteger('POSITION', 'HEIGHT', 0); //load form settings
finally
ini.Free;
end;