Jump to content

Repeat a string: Difference between revisions

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)</lang>
 
Assignment:
strExample = New String(5,"ha")
</lang>
Those produces:
<pre>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.