String (number, string)
This built-in function returns a string whose characters all have a given ANSI code or are all the first character of a string expression. Use String to create a string that consists of one character repeated over and over.
The arguments for String are:
Argument Description
To convert numeric values greater than 255 to an ANSI code between 0 and 255, String uses the remainder after the value is divided by 256 (argument Mod 256).
Example
#In the following example, String returns a string consisting of 8 asterisks by replicating
#the character provided by the second argument:
String(8, "*")
Last modified date: 07/26/2024