VBScript文字列関数
❮完全なVBScriptリファレンス
String関数は、指定された長さの繰り返し文字を含む文字列を返します。
構文
String(number,character)
Parameter | Description |
---|---|
number | Required. The length of the returned string |
character | Required. The character that will be repeated |
例1
response.write(String(10,"#"))
Output:
##########
例2
response.write(String(4,"*"))
Output:
****
例3
response.write(String(4,42))
Output:
****
例4
response.write(String(4,"XYZ"))
Output:
XXXX
❮完全なVBScriptリファレンス