Returns a string repeated a specified number of times.


<oRef>.replicate(<expC> [, <expN>])


A reference to a String object.


The string you want to repeat.


The number of times to repeat the string; by default, 1.

Property of



This method is almost identical to the REPLICATE( ) function, but in addition to the syntactic difference of being a method instead of a function, the repeat count is optional and defaults to 1.