Thema: Delphi Ini Files

Einzelnen Beitrag anzeigen

k4ni

Registriert seit: 17. Jul 2007
Ort: Ulm
258 Beiträge
 
Delphi 7 Enterprise
 
#1

Ini Files

  Alt 27. Okt 2007, 14:22
Hallo habe eine kleine frage.
Ich habe bei Form1Create das hier drin stehen:
Delphi-Quellcode:
   
Ini := TIniFile.Create(ExtractFilePath(ParamStr(0))+'Options.ini');

   if Ini.ValueExists('GameButtons', 'HowMany') = false then
  Ini.WriteString('GameButtons', 'HowMany', '9 Buttons');
 Form2.ComboBOx1.Text:= Ini.ReadString('GameButtons', 'HowMany', 'asdf');
Doch er gibt mir immer Acces violations beim starten, wieso ?
  Mit Zitat antworten Zitat