Autor Beitrag
Martin W
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 116



BeitragVerfasst: Fr 18.06.04 16:36 
Also ich bin es mal wieder...

Ich möchte den Inhalt einer TMEMO Komponente in eine ini speichern und später wieder auslesen.. Wie geht das?

Irgendwie spreichert es bei mir nur die erste zeile...


Moderiert von user profile iconMotzi: Topic aus Sonstiges verschoben am Sa 19.06.2004 um 12:29
Moderiert von user profile iconTino: Titel geändert.
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: Fr 18.06.04 16:52 
ausblenden Delphi-Quelltext
1:
memo1.lines.savetofile('C:\test.ini');					

damit sollte es gespeichert werden und so kann man es wieder ins memo laden:
ausblenden Delphi-Quelltext
1:
memo1.lines.loadfromfile('C:\test.ini');					
Martin W Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 116



BeitragVerfasst: Fr 18.06.04 17:05 
Ich will aber die Dateistruktur einer ini-Datei beibehalten...

Beispiel:

ausblenden Quelltext
1:
2:
3:
4:
[Sektion 1]
wertname1= wert 1
wertname2= bla 
wertname3= bla bla


und so weiter...

Der Inhalt der TMemokomponente soll jetzt in einem Wert gespeichert werden. Beispiel:

ausblenden Quelltext
1:
2:
3:
4:
[Sektion 2]
wertname1= wert 1
wertname2= Memo1 Text   <--- Hier den Memo 1 Text
wertname3= bla bla



Gruß

Moderiert von user profile iconPeter Lustig: BBCode aktiviert
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Fr 18.06.04 18:35 
Hallo

Popov hat hier mal was gemacht: www.delphi-forum.de/...ighlight=listbox+ini

dein Titel ist recht aussagekräftig :?

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
Martin W Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 116



BeitragVerfasst: Sa 19.06.04 10:28 
hey danke, das hab ich gesucht =)