Info-Mac Archive Downloads: dev/db/a4d/ext/

Back to dev/db/a4d/ext/

FormatPhone Ext (format-phone-ext.hqx)

Download format-phone-ext.hqx (3,372 KB)


From: SMTP%"ALLAN@otago.ac.nz" 30-JUL-1991 21:30:56.65
To: hagood@scri1.scri.fsu.edu
CC:
Subj: FormatPhone Ext

Date: Wed, 31 Jul 91 13:14 GMT +1200
From: Allan Udy
Subject: FormatPhone Ext
To: hagood@scri1.scri.fsu.edu
X-VMS-To: IN%"hagood@scri1.scri.fsu.edu"

FormatPhone
FormatPhone will take a raw string and convert it into a string formatted in the form
(###) ###-#### if there are 10 characters in the string
###-#### if there are seven characters in the string
and the same way as entered if it has an odd number of characters.