Promotic

String - function of language VBScript

Description:
Returns a repeating character string of the length specified.
Syntax:
String String(Integer number, Variant character)
Parameters:
number(Integer) Length of the returned string.
character(Variant) Character code specifying the character or text string whose first character is used to build the return string.
Note:
If you specify a number for character greater than 255, then function converts the number to a valid character code using the formula:
character Mod 256
Example:
VBScriptSelect and copy to clipboard

Dim s
s = String(5, "*")   ' *****
s = String(5, 42)   ' *****
s = String(10, "ABC")   ' AAAAAAAAAA
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.