Anonymous user
Repeat a string: Difference between revisions
→{{header|Visual Basic .NET}}
Line 812:
There is a simple instruction do repeat a char or a string the specified number of times (must be greater than 0).
<lang vbnet>String(5, "ha")
String(5, "*"C)
Assignment:
strExample = New String(5,"ha")
</lang>
Those produces:
<pre>
|