Zu den Ini's schmeiss ich mal das hier in den Raum:
ganz oben zu der uses-liste dies hinzufügen: IniFiles
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15:
| Ini := TIniFile.Create(ExtractFilePath(ParamStr(0)) + 'config.ini');
Ini.WriteString('PROGRAMM_BLABLA', 'UNTERKATEGORIE', Edit1.Text);
Edit1.Text := Ini.ReadString('PROGRAMM_BLABLA', 'UNTERKATEGORIE', '-nichts-');
Ini.Free; |
das gleiche für checkbox sieht so aus:
Laden:
Delphi-Quelltext
1:
| checkbox1.Checked := Ini.ReadBool('PROGRAMM_BLABLA', 'INHALT', checkbox1.checked); |
Schreiben:
Delphi-Quelltext
1:
| Ini.WriteBool('PROGRAMM_BLABLA', 'INHALT', checkbox1.checked); |