Autor Beitrag
Jacdelad
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 109

Win XP Pro
Borland Developer Studio 2006 Architect
BeitragVerfasst: Mo 17.04.06 17:25 
Hallo, hab mal wieder ein minimalstes Problem:

Ich will einen String aus x mal einem Zeichen erzeugen, gibts da einen Befehl dafür (bin überzeugt, dass es einen gibt) oder muss ich das mit ner for-Schleife machen?

Jac
Danniolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 693



BeitragVerfasst: Mo 17.04.06 17:28 
For-Schleife!
ausblenden Delphi-Quelltext
1:
2:
For i := 0 To 5 Do
  str := str + 'x';
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: Mo 17.04.06 17:29 
Funktion StringOfChar('x', Anzahl);

_________________
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.
Jacdelad Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 109

Win XP Pro
Borland Developer Studio 2006 Architect
BeitragVerfasst: Mo 17.04.06 17:31 
Ah, danke. Ja die For-Schleife war schon klar, aber den Befehl dazu hab ich verzeweifelt gesucht!

Jac