Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 8687 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I've been searching and searching for an international phone number format calculation - Seems all I can find is US formatting. I would like it to be able to handle both if possible. . .. If anyone has some info on this, please do tell.

Posted

Use an "If" command -- such as, if(Left(telephone, 3) = "011" ... -- to determine if the phone number is an international number, then format accordingly.

Unfortunately, you can't set it to format too closely past the 011, as different countries have vastly different number formats, but at least it's a start.

HTH,

Dan

Posted

One option is to use the Case function incombination with length function to anticipate all the possible total number of characters for the different countries' numbers:

Case(

Length(RawField) = 12, Left(RawField,3)&"/"&

Middle(RawField,4,3)&"/"&Middle(RawField,7,3)&"/"&Right(RawField,3),

Length(RawField) = 11, as above according to the convention of "/" or "-" or "()" you desire.

Or...

If the database has a field for the country name for the phone number, you cound substitute the test phrase Length() in the Case with

(Country=USA)or(Country=Canada), format this way,

(Country=Poland)or(Country=Germany, format that way, ...)

and so on.

GW

This topic is 8687 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.