ASP Is Fun

Learning ASP
Free ASP Course
ASP Basics
ASP Functions
SQL Commands
Sample ASP Code


Servers / Setup
ASP Host Reviews
ASP Server Setup
ASP Error Tips


Contract ASP
ASP Development

Search For:


Intro to ASP


 


ASP String Function List


Strings, or variables that take letters and numbers, are used in just about every ASP script written. A string can be anything from "Hello, world" to "Four score and seven years ago" to "a thousand dollars."

A string can even have numbers in it. So a string could be "555-555-1212" or "800 dollars" or "192.123.456.789". Pretty much any letter or number you can type on a keyboard, and a few besides, can go into a string variable. You can then slice and dice those variables with a number of functions.

Here are some ASP string functions that allow you to work with your string variables. Click on any of these string function links to get full details on how to use that function.

Asc
Returns the ascii code of a given character.

cStr
Converts an integer or other numeric value into a string.

InStr
Located the first occurrence of a character or characters within a string.

LCase
Makes an entire string lower case.

Left
Gets the leftmost X characters from a string

Len
Tells you the number of characters in a string.

Mid
Extracts a group of characters from the center of a string.

Replace
Replaces a character or characters within a string with a new character or characters.

Right
Gets the rightmost X characters from a string

Split
Break a string up into bits based on spaces, periods, or other characters.

Trim
Removes any spaces from the beginning or end of a string.

UCase
Makes an entire string upper case.

By learning how each ASP string function works, you can ensure that you write your ASP code to be as efficient and quick-running as possible. That equates to happy visitors and easier debugging!

ASP Function List



Bookmark this site so you can reference it any time you have ASP questions in the future!

Add ASP+Functions+ to Twitter Add ASP+Functions+ to Facebook Add ASP+Functions+ to MySpace Add ASP+Functions+ to Del.icio.us Digg ASP+Functions+ Add ASP+Functions+ to Yahoo My Web Add ASP+Functions+ to Google Bookmarks Add ASP+Functions+ to Stumbleupon Add ASP+Functions+ to Reddit



 


Get Emails when this Site is Updated



ASP Ebooks | Free ASP Course |
All content copyright 2014 Minerva WebWorks LLC. All rights reserved.

Irish Wedding

Free Newsletter!

Ebooks
Intro to ASP
ASP SQL DB
ASP Members
ASP Shopping


Introduction to ASP

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



affiliate_link