VBScript » Functions » String

Syntax:
String(Number, Character)
Number
The Number argument must an integer and defines the number of times to repeat the character.
Character
The Character argument is a single character. It must be inside a pair of double quotes.

The String function creates a string with a single character repeated the specified number of times.

Examples

Code:
<% =String(33, "!") %>
Output:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Language(s): VBScript

See Also: