User Guide : Using Content Extraction Language : Language Syntax and Examples : String (number, string)
 
Share this page             
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
 
number
Numeric expression indicating the length of the returned string. Number must be between 0 and approximately 65,500 inclusive.
string
String expression whose first character is used to build the return string.
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, "*")