Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 7th, 2005, 05:39 AM
Registered User
 
Join Date: Oct 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default arithmetic with ASP VBScript

I have been trying to add a cookie variable by the number 1 so it can act like a counter, but instead of add 1 + 1 = 2, it does 1 + 1 = 11, then that cookie variable + 1 = 111, then that cookie variable again + 1 = 1111, etc...

Any help with this strange behavior would be much appreciated.

thanks,
dcarroll

 
Old October 7th, 2005, 06:08 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hii dcarroll!!
 use parseInt or cint as required by ur javascript/vbscript.


Cheers :)

vinod
 
Old October 7th, 2005, 09:14 AM
Registered User
 
Join Date: Oct 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks man that worked, and thanks for answering so quickly to.

dcarroll






Similar Threads
Thread Thread Starter Forum Replies Last Post
simple arithmetic overflow vbscript handy Classic ASP Basics 32 March 31st, 2009 04:25 PM
Arithmetic overflow error gregalb Reporting Services 1 June 24th, 2008 02:42 PM
date arithmetic pcase XSLT 4 June 8th, 2007 09:58 AM
arithmetic overflow problem flyfish SQL Server 2000 4 July 12th, 2005 04:37 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.