VBScriptLen関数_
❮完全な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リファレンス