Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cint() Clng() - learned in a hard way

Status
Not open for further replies.

denoxis

Programmer
Jul 22, 2002
154
US
For some reason I always use Cint() function to convert the number-looking strings. I always think that "int" is same as the one in SQL. The other day, one of the web site blew up after a year: Overflow: 'Cint'

The increasing number in the database was passed by querystrings. In the ASP I was converting it using Cint(). When the number reached at 32769 in the database, BOOM! I try to use CLng() from now on. Cint() is like a time bomb for this kind of applications.
 
Yeah... I know what you are saying. :) I used to write w/ the CInt(), but now I only do it if I know there isn't ever going to be a big number.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top