/home/web-programming/asp/

ASP Left, Mid, and Right Functions

The ASP Left(), Mid(), and Right() functions are used to extract a specified number of characters from a string.

ASP Coding for Left Function

<%

Response.Write Left("How is Martha?",3)

%>


OR

<%

=Left("How is Martha?",3)

%>


Result

How

Left, Mid, and Right Functions Results
Left("How is Martha?",3) How
Mid("How is Martha?",3,7) w is Ma
Right("How is Martha?",3) ha?