String Function
Returns a repeating character string of the length specified.
Syntax
String(number, character)
Arguments:
- Number: Length of the returned string.
- Character: Character code specifying the character or string expression whose first character is used to build the return string.
The following example uses the String
function to return repeating
character strings of the length specified:
Example:
Dim MyString
MyString = String(5, "*")
' Output: "*****".
MyString = String(10, "ABC")
' Output: "AAAAAAAAAA".