Click here to Skip to main content
15,898,978 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: loading images and text Pin
netJP12L16-Sep-08 4:59
netJP12L16-Sep-08 4:59 
GeneralRe: loading images and text Pin
Pete O'Hanlon16-Sep-08 12:07
mvePete O'Hanlon16-Sep-08 12:07 
QuestionFather class in how to use the special sub-category of type Pin
huangrongchuan31-Aug-08 21:56
huangrongchuan31-Aug-08 21:56 
QuestionPhone Number Internationalization Pin
k_dasaprakash31-Aug-08 3:21
k_dasaprakash31-Aug-08 3:21 
AnswerRe: Phone Number Internationalization Pin
Paul Conrad31-Aug-08 5:40
professionalPaul Conrad31-Aug-08 5:40 
AnswerRe: Phone Number Internationalization Pin
Pete O'Hanlon31-Aug-08 8:40
mvePete O'Hanlon31-Aug-08 8:40 
AnswerRe: Phone Number Internationalization Pin
Ray Cassick31-Aug-08 14:33
Ray Cassick31-Aug-08 14:33 
AnswerRe: Phone Number Internationalization [modified] Pin
txjudo18-Nov-08 2:32
txjudo18-Nov-08 2:32 
Hi,

I hope this helps you or at least someone.

I am by no means a professional programmer but more of an extreme hobbyist, but I have seen the phone number internationalization done and maybe I can relay the info...remember, I am self taught so I'm sure there will be holes in my explanation but the practice its self works.

I use this in an international logistics system, and instead of a drop down, we utilize a box where we can enter the countries ISO code (or select it from a grid). The format for the phone number is then set in the phone number field, whether that be phone, fax or mobile.

This is all done by 3 files; phonetypelist, phoneformatandvalidation, and phoneinfo.

PhoneTypeList contains the type of phone numbers, i.e. fax, phone, mobile and other.
PhoneFormatAndValidation contains the rules for formating the numbers and the functions for executing the conversion of 7134921212 to +1 713-492-1212. This file is pretty complex since it contains the rules, but it's a fairly small file (class), only 30 kb.

The file that contains the dataset is in this format:

If (PhoneInfo.fData Is Nothing) Then
                    PhoneInfo.fData = New PhoneInfoDataTable
                    Dim row As PhoneInfoRow = PhoneInfo.fData.NewPhoneInfoRow
                    row.CountryIsoCode = "AC"
                    row.CountryDialingCode = "247"
                    row.InternationalPrefix = "01"
                    row.NationalPrefix = ""
                    row.AreaCodeLength = 1
                    row.LocalNumberLength = 4
                    PhoneInfo.fData.Rows.Add(row)
                    row = PhoneInfo.fData.NewPhoneInfoRow
                    row.CountryIsoCode = "AD"
                    row.CountryDialingCode = "376"
                    row.InternationalPrefix = "00"
                    row.NationalPrefix = ""
                    row.AreaCodeLength = 1
                    row.LocalNumberLength = 6


Hopefully that helps, but if you need additional info, feel free to let me know.

Thanks,

Joe

modified on Tuesday, November 18, 2008 9:14 AM

Questiongive me a solusion Pin
simonsinxer30-Aug-08 1:47
simonsinxer30-Aug-08 1:47 
AnswerRe: give me a solusion Pin
Paul Conrad2-Sep-08 19:11
professionalPaul Conrad2-Sep-08 19:11 
QuestionLINQ Pin
Bassam Saoud29-Aug-08 11:53
Bassam Saoud29-Aug-08 11:53 
AnswerRe: LINQ Pin
Mark Churchill30-Aug-08 4:37
Mark Churchill30-Aug-08 4:37 
AnswerRe: LINQ Pin
Pete O'Hanlon30-Aug-08 9:24
mvePete O'Hanlon30-Aug-08 9:24 
GeneralRe: LINQ Pin
Bassam Saoud2-Sep-08 5:49
Bassam Saoud2-Sep-08 5:49 
GeneralRe: LINQ Pin
Pete O'Hanlon2-Sep-08 8:02
mvePete O'Hanlon2-Sep-08 8:02 
GeneralRe: LINQ Pin
Bassam Saoud2-Sep-08 8:43
Bassam Saoud2-Sep-08 8:43 
GeneralRe: LINQ Pin
Pete O'Hanlon2-Sep-08 8:52
mvePete O'Hanlon2-Sep-08 8:52 
GeneralRe: LINQ Pin
Bassam Saoud2-Sep-08 10:33
Bassam Saoud2-Sep-08 10:33 
QuestionClass data members Pin
CodingYoshi20-Aug-08 11:14
CodingYoshi20-Aug-08 11:14 
AnswerRe: Class data members Pin
Pete O'Hanlon20-Aug-08 11:26
mvePete O'Hanlon20-Aug-08 11:26 
GeneralRe: Class data members Pin
led mike20-Aug-08 11:38
led mike20-Aug-08 11:38 
AnswerRe: Class data members Pin
led mike20-Aug-08 11:41
led mike20-Aug-08 11:41 
AnswerRe: Class data members Pin
Brady Kelly20-Aug-08 23:32
Brady Kelly20-Aug-08 23:32 
GeneralRe: Class data members Pin
stavinski21-Aug-08 2:13
stavinski21-Aug-08 2:13 
GeneralRe: Class data members Pin
Robert.C.Cartaino21-Aug-08 6:03
Robert.C.Cartaino21-Aug-08 6:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.