String

This function creates a repeating character string of a specified length.

Syntax

String(number, character)

Parameters

number
Length of the returned string.
character
Character code that specifies the character or string expression whose first character is used to build the return string.

Return Values

Returns a string.

Remarks

If you specify a number for character greater than 255, String converts the number to a valid character code using the following formula.

character = character Mod 256