Parsing strings in ASP using VBscript functions

First of all a string is a group of characters. These characters can be letters, numbers or even special characters like the exclamation mark or the ampersand. This group of characters encapsulated within quotations are stored in a variable.

Our example code below sets our variable myString equal to the string of characters "Good day!"

<%
'Declare variable
Dim myString
myString ="Good day!"
%>

Using some of the VBScript functions below we can manipulate and work with the strings that variables hold.

InStr function
Left and Right functions
Len function
Replace function
LCase and UCase functions
Mid function
Trim LTrim and RTrim functions

Learn how to Concatenate Strings

LinksPro - Directory  and Link  Management Software

Get the best asp hosting provider from web-hosting-top.com and save up to 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.

Global ASP.NET Hosting Leader - Click Here