VBScript 렌 함수
❮ 완전한 VBScript 참조
Len 함수는 문자열의 문자 수를 반환합니다.
통사론
Len(string)
Parameter | Description |
---|---|
string | A string expression |
예
실시예 1
<%
txt="This is a beautiful day!"
response.write(Len(txt))
%>
위 코드의 출력은 다음과 같습니다.
24
실시예 2
문자열을 Len 함수에 직접 넣을 수도 있습니다.
<%
response.write(Len("This is a beautiful day!"))
%>
위 코드의 출력은 다음과 같습니다.
24
❮ 완전한 VBScript 참조