Promotic
WikipediaLinkedInYoutubeTwitterFacebook

String - function of language VBScript

Description:
Returns a repeating character string of the length specified.
Syntax:
String(number As Integer, character As Variant) As String
Calling:
s = String(number, character)
Parameters:
number(Integer) length of the returned string.
character(Variant) Character code specifying the character or string expression whose first character is used to build the return string.
Note:
If you specify a number for character greater than 255, string converts the number to a valid character code using the formula:

character Mod 256

Example:
Dim s
s = String(5, "*") ' Returns "*****"
s = String(5, 42) ' Returns "*****"
s = String(10, "ABC") ' Returns "AAAAAAAAAA"
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice