Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Selective auto-formatted numbers in Address Book' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Selective auto-formatted numbers in Address Book
Authored by: david-bo on Jul 27, '04 04:11:36AM

Any ideas for how to accomplish the following formatting of different kinds of numbers:

(the area codes are the digits before the dash)

Area codes that varies between 2 and 4 digits. Here are some examples and how they are formatted by hand:

Landlines
031-123 45 67
031-12 34 56
0303-12 34 56
0303-123 45 67
08-12 34 56
08-123 45 67
08-123 456 78

There are 264 different landline area codes, where ≈ 230 consist of four digits (and there are both three and four digits of almost all leading numbers, e.g., both 031 and 0303 or 042 and 0480 etc).



Cellphone numbers are always prefixed with the country code and therefore the leading 0 is excluded. I want cell phones to be displayed like this:

+46 (0)70-123 45 67


Suggestions?

---
http://www.google.com/search?as_q=%22Authored+by%3A+david-bo%22&num=10&hl=en&ie=ISO-8859-1&btnG=



[ Reply to This | # ]