ASP Is Fun

Learning ASP
Free Course
Basics
Functions
SQL Commands
Sample Code


Servers / Setup
Host Reviews
Server Setup
Error Tips


Contract ASP
Development

Search For:


Intro to ASP


 
ASP Intro Ebook


cInt Math / Numeric Function



If a user passes in a text string that contains numbers, you can use cInt to change those values from a text type to a numeric type.

So let's say you have

ItemBought = "14 cats"

You could parse out the left side of that text string so that you end up with

ItemCt = "14"

but you can't actually do math calculations with that, because it is a string of characters, not an actual number. So to turn that into a number value, you would use:

ItemNum = cInt(ItemCt)

Numeric / Math ASP Functions




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




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

Italian Wedding


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