Len ASP String Function

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.

ASP String Functions

Introduction to ASP Ebook

Download this ebook to get everything you need to know about learning ASP - from a step by step tutorial to function lists, sample code, common errors and solutions, and much more! 101 pages.




RSS
Related Articles
Editor's Picks Articles
Top Ten Articles
Previous Features
Site Map





Content copyright © 2023 by Lisa Shea. All rights reserved.
This content was written by Lisa Shea. If you wish to use this content in any manner, you need written permission. Contact Lisa Shea for details.