g
Printer Friendly Version

editor  
BellaOnline's ASP Editor
 

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

Introduction to ASP Ebook

Download this ebook to get everything you need to know about learning ASP - from a step by step tutorial to function lists, sample code, common errors and solutions, and much more! 101 pages.

ASP Site @ BellaOnline
View This Article in Regular Layout

Content copyright © 2013 by Lisa Shea. All rights reserved.
This content was written by Lisa Shea. If you wish to use this content in any manner, you need written permission. Contact Lisa Shea for details.



| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2023 Minerva WebWorks LLC. All rights reserved.


BellaOnline Editor