Autor Beitrag
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Di 11.04.06 20:07 
Hallo Leute!
Hab da mal ein neues Problem.
Wie kann Ich in einer Stringlist in jeder zb. dritten Zeile etwas einfügen.
Vieleicht kann mir da wer auf die Sprüng helfen.


Moderiert von user profile iconGausi: Topic aus Dateizugriff verschoben am Fr 21.04.2006 um 08:39
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Di 11.04.06 20:08 
Siehe DOH unter TStringList.Insert ;-)

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 11.04.06 20:10 
Tipp: Du solltest dann die StringList von UNTEN durchgehen beim einfügen !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Di 11.04.06 20:13 
Oder die Schrittweite erhöhen: Z.B. bei 3: 3, 7, 11, ...

_________________
Markus Kinzler.
Blackheart666 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Di 11.04.06 21:53 
Danke Euch (Insert) war das was Ich brauchte, habs erst mal mit Memo getestet - wer's auch mal braucht.
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
procedure TForm1.Button1Click(Sender: TObject);
var
  i:integer;
begin
  i:=-1;
  repeat
  inc(i,3);
  inc(i,1);
  Memo1.Lines.Insert(i,'Test');
  until i >=Memo1.Lines.Count;
end;