Mid VBScript function

syntax: Mid(StringtoPullFrom, CharactertoStartWith, LengthofCharactersToPull)

The Function will return the requested number of characters from a string.
The LengthofCharactersToPull parameter is optional. If LengthofCharactersToPull is left out, Mid will return all of the characters starting from CharacterToStartWith.

Example:

<%
String1="michael"
Response.write Mid(String1,3,3)
%>

Result displayed on the screen would be:
cha



Other useful VBScript functions for Parsing String

Get the best asp web hosting provider now and save 30%

Advertisements



MembersPro

MembersPro PayPal - ASP Membership software

Plug and play ASP membership script that integrates with PayPal to let you charge recurring membership fees.