logo
g Text Version
Beauty & Self
Books & Music
Career
Computers
Education
Family
Food & Wine
Health & Fitness
Hobbies & Crafts
Home & Garden
Money
News & Politics
Relationships
Religion & Spirituality
Sports
Travel & Culture
TV & Movies

dailyclick
Bored? Games!
Nutrition
Postcards
Take a Quiz
Rate My Photo

new
Action Movies
Bible Basics
Houseplants
Romance Movies
Creativity
Family Travel
Southwest USA


dailyclick
All times in EST

Full Schedule
g
g ASP Site

BellaOnline's ASP Editor

g

ASP Error - Overflow: 'cInt'


A common error in ASP is the Overflow: 'cInt' error. What does it mean when you overflow a cInt value? How do you fix this?

First off, what is an int? An int is a commonly used number variable in ASP and in other languages. Int stands for integer, and it normally means a 32-bit number on 32-bit platforms. This means the number can be anywhere from

-2,147,483,648 to 2,147,483,647

That's a pretty wide range! Integers don't have decimal points in them. They are just whole numbers. That makes the int variable perfect for loops and any other whole number operations.

On the other hand, the ASP function cInt() works on a much SMALLER group of numbers - only numbers from -32,768 to 32,767. So if you are ever counting up higher than 32,767 (or down below -32,768) you are going to run into trouble if you have to use cInt on that number.

If your numbers start getting beyond the standard range for cInt, try using the Int function instead. That usually works just as well. If it doesn't, go for the cLng() function which works with longs instead.

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.
Add ASP+Error+%2D+Overflow%3A+%27cInt%27 to Twitter Add ASP+Error+%2D+Overflow%3A+%27cInt%27 to Facebook Add ASP+Error+%2D+Overflow%3A+%27cInt%27 to MySpace Add ASP+Error+%2D+Overflow%3A+%27cInt%27 to Del.icio.us Digg ASP+Error+%2D+Overflow%3A+%27cInt%27 Add ASP+Error+%2D+Overflow%3A+%27cInt%27 to Yahoo My Web Add ASP+Error+%2D+Overflow%3A+%27cInt%27 to Google Bookmarks Add ASP+Error+%2D+Overflow%3A+%27cInt%27 to Stumbleupon Add ASP+Error+%2D+Overflow%3A+%27cInt%27 to Reddit




RSS | Related Articles | Editor's Picks Articles | Top Ten Articles | Previous Features | Site Map


For FREE email updates, subscribe to the ASP Newsletter


Past Issues


print
Printer Friendly
bookmark
Bookmark
tell friend
Tell a Friend
forum
Forum
email
Email Editor


Content copyright © 2014 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.

g


g features
Archives | Site Map

forum
Forum
email
Contact

Past Issues
memberscenter


vote
Poetry
Daily
Weekly
Monthly
Less than Monthly



BellaOnline on Facebook
g


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


BellaOnline Editor