Autor Beitrag
Sors
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 47

Win XP
D7 Prof
BeitragVerfasst: Mi 15.02.06 15:20 
Ich möchte in mein Programm ein Optionsmenü einbauen, über das der Anwender Einstellungen festlegen kann.

Wie kann ich nun die vorgenommenen Einstellungen abspeichern (am besten in einer Datei)? Und wie schaffe ich es, dass mein Programm sie bei jedem neuen Start automatisch lädt?

Im voraus schon einmal danke.
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 15.02.06 15:21 
INI-Dateien sind da sehr hilfreich.
Im FormClose schreibst du die notwendigen Optionen in die INI-Datei und im Form-Create liest du diese wieder ein.
Schau dir mal dieses Tutorial an:
www.dsdt.info/tutorials/ini/
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mi 15.02.06 15:25 
Such mal nach TIniFile. INIs sind meiner Meinung nach sehr einfach zu handhaben.
Oder guck mal hier: www.dsdt.info/tutorials/ini/
Edit: Jascoul war schneller :motz: :wink:

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot