Length of a string

Len returns the length of a string
LenB returns the length of a string in bytes

Code:

<%
Dim strLength
strLength = "this is our text string"
'return the length of the string strLength
Response.Write Len(strLength)
response.Write "<br>"
'return the length of the string strLength in bytes
Response.Write LenB(strLength)
%>

 

Sponsors