ASP Len Length Function
The ASP Len() function is used to find the length of a string or the length of the contents of a variable.
Len Function Arguments
String or variable to be tested
ASP Coding for Len Length Function
<%
sTxtString = "I am happy!"
Length = Len(sTxtString)
Response.Write Length
%>
Result
11
ASP Coding for Len Length Function
<%
sTxtString = "I am happy!"
If Len(sTxtString) > 5 Then Response.Write sTxtString
%>
Result
I am happy!