I knew something was missing! heh
----- Original Message -----
From: Mike Kear <[EMAIL PROTECTED]>
To: CF-Talk <[EMAIL PROTECTED]>
Sent: Sunday, January 21, 2001 7:12 PM
Subject: RE: How to Convert currency to numeric value
> Hey! Hang on - I was just checking to see if my question had appeared on
the
> list and here's your answer! Sheeesh . next you'll be answering my
> questions before I even get them written down!
>
> Actually, the solution to the problem required another parameter in the
> replace function so it reads as follows:
> <CFSET NumberIwant = Replace(Form.Number, "$", "", "ALL")> to replace the
> $ signs with nothing.
>
>
> Thanks a heap Phoeun, have a great day.
>
> Cheers,
> Mike Kear
>
>
> -----Original Message-----
> From: Phoeun Pha [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 22 November 2000 11:46 AM
> To: CF-Talk
> Subject: Re: How to Convert currency to numeric value
>
> <CFSET NumberIwant = Replace(Form.Number, "$", "ALL")>
>
>
>
> ----- Original Message -----
> From: Mike Kear <[EMAIL PROTECTED]>
> To: CF-Talk <[EMAIL PROTECTED]>
> Sent: Sunday, January 21, 2001 6:31 PM
> Subject: How to Convert currency to numeric value
>
>
> > I'm doing a calculator that involves users entering their annual income
> into
> > an input field. So the gross income needs to be a numeric value.
> >
> > But if the user types in $36000, then the val(grossincome) function
> returns
> > zero, because the first character isn't numeric.
> >
> > What's the easiest way to get the number out of an answer like that?
> >
> > Cheers,
> > Mike Kear
> > Windsor, NSW, Australia
> > AFP WebWorks
> >
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists