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



 


cStr String Function



You can use cStr to turn an integer into a string. This helps make string processing much easier.

The format is simply

YearText = cStr(YearInt)

assuming that YearInt is an integer value, and that YearText is the text version of it that you want to use in text manipulations. So for example if

YearInt = 1995

then

YearText = "1995"

They make look the same, but you can do things like add and subtract with the YearInt value. With the YearText value, you can do things like count how many characters are in the value, get the leftmost string, get the rightmost string, and so on.

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