Hallo ich habe folgenen Code
Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18:
| var stringliste : TStrings; Ini: TIniFile; IniDir : String; begin IniDir := ExtractFilePath(ParamSTr(0))+'daten/config/befehle.dat'; try begin Ini:=TIniFile.Create(IniDir); Ini.ReadSection('befehle', stringliste); end; finally begin Ini.Free; end; end; ShowMessage(IntToStr(stringliste.Count)); end; |
Was ist daran falsch?? Er gibt immer einen Lesefehler aus! Ich glaube das liegt an dem stringliste.count
Oder wie kann ich das sonst machen?? Ich will halt alle keys einer INI-Section in einer stringliste haben(Array ist noch besser, aber das krieg ich irgentwie nicht hin)
Danke schon mla für Antworten
.::Wissen ist Macht, nichts wissen macht nichts::.