Re-convert Currency back to Integer?

Discussion in 'ASP General' started by jason, Sep 1, 2003.

  1. jason

    jason Guest

    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, Sep 1, 2003
    #1
    1. Advertising

  2. jason

    jason Guest

    "$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:...
    > 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" <> wrote in message
    > news:...
    > > 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, Sep 1, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. KB
    Replies:
    3
    Views:
    20,866
    Pabinator
    Aug 28, 2009
  2. Replies:
    2
    Views:
    495
  3. les ander
    Replies:
    4
    Views:
    877
    wes weston
    Oct 5, 2004
  4. =?Utf-8?B?R3JlZyBH?=

    Convert currency formated string back into decimal

    =?Utf-8?B?R3JlZyBH?=, Nov 3, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    905
    Martin Honnen
    Nov 3, 2007
  5. Pascal Ehlert
    Replies:
    7
    Views:
    135
    Stefan Rusterholz
    Feb 10, 2008
Loading...

Share This Page