Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi string repeat ? (https://www.delphipraxis.net/16300-string-repeat.html)

shareholder 14. Feb 2004 17:05


string repeat ?
 
gibt es eine funktion à la

Delphi-Quellcode:
StringRepeat('Str', 10);
StrStrStrStrStrStrStrStrStrStr // <- Ausgabe
könnte das auch über for schleife lösen, allerdings will ich meinen quelltext nicht unnötig zumöhlen, wenn schon eine derartige fkt. existiert. :)

neolithos 14. Feb 2004 17:15

Re: string repeat ?
 
Delphi-Quellcode:
StringOfChar
DupeString
uses StrUtils nicht vergessen

Zitat:

Zitat von Delphi Hilfe
S := DupeString('Ha', 5);

Diese Anweisung gibt den String 'HaHaHaHaHa' zurück.


shareholder 14. Feb 2004 17:25

Re: string repeat ?
 
super ! :thuimb:

funktioniert einwandfrei !!! :bouncing4:


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:47 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz