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)
ASP Math and Number 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. |