Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

calculations in area code problem

Featured Replies

  • Newbies

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. :

Try:

"(" & Left ( text ; Length ( text ) - 7 ) & ")" & Middle ( text ; 4 ; 3 ) & "-" & Right ( text ; 4)

  • Author
  • Newbies

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

Try this:

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

Sorry, I missed the middle part. Just apply the same principle of counting from the end:

... & Middle ( text ; Length ( text ) - 6 ; 3 ) & ...

  • Author
  • Newbies

it works!!! thanks a lot!!!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.