String
Creates a string that consists of one character repeated a specific number of times.
The required Num argument is Long numeric expression indicating how many characters to return. If Num contains Null, Null is returned.
The required Character argument is a String expression from which the first character is repeated and returned, or is a Variant (Long) representing a valid character code. If character contains Null, Null is returned.
Syntax
String(Num)
Num:
An Integer or expression representing a valid numeric value.
Related Functions
Example
Dim strTest as String
strTest = String(5, "*")
' Returns "*****"
strTest = String(5, 42)
' Returns "44444"
strTest = String(10, "Today")
' Returns "TTTTTTTTTT"