cleanNumbers = rereplace(vartocleanup, "[^0-9\.]+", " ", "ALL")
try something like that, it'll replace everything that isn't a number or a
period.
-Michael
========================================
Michael Imhoff :::: www.omnicypher.com :::: icq: 10495667
[EMAIL PROTECTED] (home) :::: (320) 255-4447 (home)
[EMAIL PROTECTED] (cell) :::: (612) 247-8159 (cell)
Allaire Alliance Consulting Partner
----- Original Message -----
From: "Robert Everland" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, May 08, 2000 1:08 PM
Subject: RE: Val() doesn't work like I need it to
> Try this Replace( string, "$", "" , "All"). That should take care of any
> problem you had. String being the name of your field name of course.
>
>
> Robert Everland III
> Web Developer
> Dixon Ticonderoga
>
>
> -----Original Message-----
> From: Reuben King [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 08, 2000 1:40 PM
> To: [EMAIL PROTECTED]
> Subject: Val() doesn't work like I need it to
>
>
> Val("$12.31") returns 0. Val("1,120.1") returns 1.. This is starting to
> piss me off. Am I missing something here? Am I going to have to write
> a custom tag to simply convert a human-readable number into a number-
> number for insertion into an Oracle column? (Oracle's to_number() is
> just as useless, if not more so! urg.)
>
> TIA,
> -R
> --------------------------------------------------------------------------
--
> --
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
> --------------------------------------------------------------------------
----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.