Hàm chuỗi VBScript
❮ Tham khảo VBScript hoàn chỉnh
Hàm String trả về một chuỗi chứa ký tự lặp lại có độ dài được chỉ định.
Cú pháp
String(number,character)
Parameter | Description |
---|---|
number | Required. The length of the returned string |
character | Required. The character that will be repeated |
ví dụ 1
response.write(String(10,"#"))
Output:
##########
Ví dụ 2
response.write(String(4,"*"))
Output:
****
Ví dụ 3
response.write(String(4,42))
Output:
****
Ví dụ 4
response.write(String(4,"XYZ"))
Output:
XXXX
❮ Tham khảo VBScript hoàn chỉnh