Finding length of a string using len and lenB function in ASPWe can find out the length of a string by using len() function of VBScript in ASP. This way we can count the total number of letters or characters present in a string. This function takes the string variable or the string itself and returns the number of characters available within the string. Here is an example of uses of len function in finding out the length or size of a string.Simple example of len() function
Dim my_string
Output of the above code is here
|
ASP functions to handle string Adding two or more strings in ASP Getting the size or length of the string by using len() function Removing blank space before and after a string using trim function Changing lower to upper or upper to lower case of text present inside a string Reversing a string variable by using StrReverse function Compare two strings in different ways by using StrComp function Collecting parts from Left , right and middle areas of a string Checking matching of a string inside another string using InStr function Searching and replacing strings inside another string using Replace function Creating arrays by splitting string using split() function Joining elements of an array to create a string variable Line Break by replacing text line break to html line break using Replace function |