How could i multiply a string by a number to achieve n amount of repetitions of that string in a Labels caption, i.e
if n = 5 then ‘s’*n= ‘sssss’ which would then become the labels caption.
anything along those lines returns the error that the operator is not applicable to the operand type.
thanks
There’s no built in operator that does what you want. Your code would work in Python, but not in Delphi.
If your string is a single character then you can use
StringOfChar:For a longer input string use
DupeStringfrom theStrUtilsunit: