Welcome to my ASP Code Website

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


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.

Still stuck? Please be sure to Contact Lisa Shea - that's me - and I'm happy to lend a hand. I've been programming in ASP classic for many, many years and can help you get through your coding challenge quickly and easily!

To have an easy to use, easy to read reference on hand as you code, also check out my Intro to ASP Book which comes in both ebook and paperback format.

Thanks for stopping in to my page - and good luck!

ASP String Functions