ASP Len Length Function

web

 
  Sponsored Links


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

web

ASP Coding for Len Length Function

<%

sTxtString = "I am happy!"

If Len(sTxtString) > 5 Then Response.Write sTxtString

%>


Result

I am happy!
   
 
web

ReaLife WebDesigns / 310.371.3275
We appreciate having the opportunity to contribute to the success of your business!

© 1999-2010 ReaLife WebDesigns. All rights reserved. site map | terms of use