Funzione stringa VBScript


❮ Riferimento completo di VBScript

La funzione String restituisce una stringa che contiene un carattere ripetuto di una lunghezza specificata.

Sintassi

String(number,character)

Parameter Description
number Required. The length of the returned string
character Required. The character that will be repeated

Esempio 1

response.write(String(10,"#"))

Output:

##########

Esempio 2

response.write(String(4,"*"))

Output:

****

Esempio 3

response.write(String(4,42))

Output:

****

Esempio 4

response.write(String(4,"XYZ"))

Output:

XXXX

❮ Riferimento completo di VBScript