Welcome to my ASP Code Website

Len ASP String Function

Len is a commonly used ASP function that allows you to determine the number of characters in a string. In other languages, a similar function would be "length". Len takes in just one parameter:

* The string variable to operate on

The original string variable is not altered.

Let's say you have a string called UserName which is equal to "Lisa Shea". You want to know how long that string is, to help you cut it into two pieces. To do so, you would use:

NameLen = Len(UserName)

The result is that NameLen would be equal to 9.

Still stuck? Please be sure to Contact Lisa Shea - that's me - and I'm happy to lend a hand. I've been programming in ASP classic for many, many years and can help you get through your coding challenge quickly and easily!

To have an easy to use, easy to read reference on hand as you code, also check out my Intro to ASP Book which comes in both ebook and paperback format.

Thanks for stopping in to my page - and good luck!

ASP String Functions