ASP Is Fun

Learning ASP
Free Course
Basics
Functions
SQL Commands
Sample Code

Servers / Setup
Host Reviews
Server Setup
Error Tips

Contract ASP
Development

Intro to ASP



 
French Wedding


Left ASP String Function



Left is a commonly used ASP function that allows you to copy characters from the left side of a string. It takes two arguments:

* The string variable to operate on
* An integer representing how many characters to copy

The original string variable is not altered.

Let's say you have a string called UserName which is equal to "Lisa Shea". Now let's say you just want the Lisa part, to put into a new field called FirstName. Using the InStr function you determine that the first name is 4 characters long. You would then use Left like this:

FirstName = Left(UserName, 4)

The result is that FirstName would be equal to "Lisa".

ASP String Functions


ASP Main Page | ASP Ebooks | Free ASP Course | Contact Lisa
All content copyright © 2008 Minerva WebWorks LLC. All rights reserved.



Free Newsletter!

Ebooks
Intro to ASP
ASP SQL DB
Members
Shopping


Introduction to ASP

Romance Tips
Irish Romance
Italian Romance
French Romance

ASP Poll
How do you handle 500 errors?
I don't
Page does nothing
Displays error
Emails error