Autor Beitrag
Sauger Chris
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 228

Win XP, Linux SuSE 9.2
Delphi 4,Delphi 7 Ent.
BeitragVerfasst: Sa 19.05.07 08:23 
moin

hab mal ne frage und zwar muß ich die leer zeilen aus ner stringlist löschen

was verwende ich da am besten

ausblenden Delphi-Quelltext
1:
2:
3:
pos();
oder
StringReplace();


und soll ich nach '' suchen oder besser '#13#10'

danke für eure posts


mfg saugi
Jann1k
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 866
Erhaltene Danke: 43

Win 7
TurboDelphi, Visual Studio 2010
BeitragVerfasst: Sa 19.05.07 09:53 
wie wärs fürs löschen mit stringlist.delete()?
Horst_H
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1654
Erhaltene Danke: 244

WIN10,PuppyLinux
FreePascal,Lazarus
BeitragVerfasst: Sa 19.05.07 10:18 
Hallo,

aus einer striglist entfernt man Zeilen mit delete.
Am sichersten geht man unten nach oben durch( oben erste Zeile), da delete die folgenden Zeilen nach oben verschiebt
ausblenden Delphi-Quelltext
1:
2:
3:
For i := SL.COunt-1 downto 0 do
  IF SL[i] ='' then
     SL.delete[i];
Sauger Chris Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 228

Win XP, Linux SuSE 9.2
Delphi 4,Delphi 7 Ent.
BeitragVerfasst: Sa 19.05.07 12:18 
ok thx :)