Autor Beitrag
ralfi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 153



BeitragVerfasst: Mi 10.12.03 12:50 
Hallo!

Ich habe z. B. ein Text im Memo:

Ralf Mustermann
Musterstrasse 1
10000 Berlin


Wie kann ich jede Zeile in einen String umwandelt?
Chatfix
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1583
Erhaltene Danke: 10

Win 10, Win 8, Win 7, Win Vista, Win XP
VB.net (VS 2015), MsSQL (T-SQL), HTML, CSS, PHP, MySQL
BeitragVerfasst: Mi 10.12.03 12:54 
Entweder mit Schleife (bei einer nicht-festen anzahl an zeilen):
ausblenden Delphi-Quelltext
1:
2:
3:
4:
for i := 0 to Memo1.Lines.Count -1 do
begin
  DeinString := Memo1.Lines[i]
end;


oder ohne:
ausblenden Delphi-Quelltext
1:
2:
3:
Name := Memo1.Lines[0]
Strasse := Memo1.Lines[1]
plzort := Memo1.Lines[2]

_________________
Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce