Autor Beitrag
Calculon
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 676

Win XP Professional
Delphi 7 PE, Delphi 3 PRO
BeitragVerfasst: Di 09.10.07 16:08 
Hi Leute,

ich würde gerne den Text in einem Memo in eine Ini speichern und beim Start wieder einlesen.

So mach' ich das bisher:
ausblenden Delphi-Quelltext
1:
ini.WriteString('Timer1', 'Message1', form12.Memo2.Text);					

Die ini sieht dann so aus

Zitat:
[Timer1]
Message1=Bla Bla Bla
Noch mehr bla
und noch mehr bla

und so versuch ich's dann einzulesen:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
me1 := ini.ReadString('Timer1','Message1','');
.
.
memo1.text := me1;

In meinem Memo steht nun aber nur die erste Zeile. Kann ich strings mit Zeilenumbruch nicht in einer Ini-Datei speichern?

Gruß

Calculon
--
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Di 09.10.07 16:15 
Moin!

Dazu haben wir einen FAQ-Beitrag. ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Calculon Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 676

Win XP Professional
Delphi 7 PE, Delphi 3 PRO
BeitragVerfasst: Di 09.10.07 16:26 
Thanx user defined image

Gruß

Calculon
--