Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

  • Newbies
Posted

hi! im new in filemaker and i have a problem with my project.

here in the philippines we have a area code with 3 digits and 2 digits, something like this:

(046)123-4567 & (02)123-4567

my calculations for my 3 digits area code is like this:

"(" & left (text; 3) & ")" & middle (text; 4; 3) & "-" & Right (text;4)

the problem is when I enter a 2 digits area code. can anyone help me with my problem? I want both 2 digits & 3 digits area code enter with no problem.

Thanks in advance!

i hope you got what im trying to say. :

  • Newbies
Posted

thanks for the reply.

but there's still a problem. when i enter 021234567 it will return to this (02)234-4567 that supposed to be like this (02)123-4567

Posted

Try this:

"(" & Left ( phonefmt2::PhoneNo ; Length ( phonefmt2::PhoneNo )-7 ) & ")" & Middle ( phonefmt2::PhoneNo ; Length ( phonefmt2::PhoneNo ) - 6 ; 3 ) & "-" & Right ( phonefmt2::PhoneNo ; 4 )

This topic is 6013 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.