No you are right but I really don't need to get that involved. The
<CFSET Zip = REReplace(Zip,"[[:space:]]*","","ALL")> worked just fine.
Thanks,
Rich
-----Original Message-----
From: John Paitel [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 5:26 PM
To: CF-Talk
Subject: RE: Remove spaces
>Can't do that because the US zips are 5 digits and international are 6.
So? Just do a check to see if the address being added is an international
address. If so, check for 6 numbers, if not, check for five. I can't
imagine that the zip code is the ONLY indicator of an international
client... ;-)
John
>Rich
>
>-----Original Message-----
>From: Billy Cravens [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, August 14, 2001 5:11 PM
>To: CF-Talk
>Subject: RE: Remove spaces
>
>
>You could do a Replace(zipcode," ","","all") but I would suggest doing
>client-side as well as server-side validation, and make it more robust
>than just checking for spaces. Check for length, all numbers, etc.
>
>---
>Billy Cravens
>HR Systems, EDS
>[EMAIL PROTECTED]
>
>
>-----Original Message-----
>From: Rich Tretola [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, August 14, 2001 3:59 PM
>To: CF-Talk
>Subject: Remove spaces
>
>
>What function do I use to remove spaces in the middle of a string? I
>have a zipcode field where international users are leaving spaces in the
>zipcode which is causing errors in the shipping calculator. Thanks, Rich
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists