On 9/9/00, Mark Adams penned:
>I need to format this phone number, #NumberFormat(PhoneNumber)# to look
>like this 555-222-0000 but I am not sure how to properly mask it. Any Ideas?
The easiest way is to give them 3 fields. area_code size=3
maxlength=3, exchange size=3 maxlength=3, pnumber size=4 maxlength=4.
Then:
INSERT INTO CUSTOMERS
(phone_number)
VALUES
('#area_code#-#exchange#-#pnumber#')
or:
UPDATE CUSTOMERS
SET
phone_number = '#area_code#-#exchange#-#pnumber#'
--
Bud Schneehagen - Tropical Web Creations
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
954.721.3452
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
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.