Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP General (http://www.velocityreviews.com/forums/f65-asp-general.html)
-   -   Re-convert Currency back to Integer? (http://www.velocityreviews.com/forums/t789848-re-convert-currency-back-to-integer.html)

jason 09-01-2003 07:46 PM

Re-convert Currency back to Integer?
 
Database: Access 2000

How does one switch a converted currency format back to a plain integer in
Asp. I have tried Cint but this produces an overflow error for the
following:

NewPrice = CInt(Request.Form.Item("NewPrice"))

Microsoft VBScript runtime (0x800A0006)
Overflow: 'Cint'




jason 09-01-2003 08:21 PM

Re: Re-convert Currency back to Integer?
 
"$252,"

...but the error message cuts off the trailing zeros. The incoming form
variable is Currency formatted in the previous form.


"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uoZLwTMcDHA.2820@tk2msftngp13.phx.gbl...
> what's the value of NewPrice when this happens?
>
>
> --
> ----------------------------------------------------------
> Curt Christianson (Software_AT_Darkfalz.Com)
> Owner/Lead Designer, DF-Software
> http://www.Darkfalz.com
> ---------------------------------------------------------
> ..Offering free scripts & code snippits for everyone...
> ---------------------------------------------------------
>
>
> "jason" <jason@catamaranco.com> wrote in message
> news:upDSGHMcDHA.2940@TK2MSFTNGP11.phx.gbl...
> > Database: Access 2000
> >
> > How does one switch a converted currency format back to a plain integer

in
> > Asp. I have tried Cint but this produces an overflow error for the
> > following:
> >
> > NewPrice = CInt(Request.Form.Item("NewPrice"))
> >
> > Microsoft VBScript runtime (0x800A0006)
> > Overflow: 'Cint'
> >
> >
> >

>
>





All times are GMT. The time now is 06:59 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57