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

Remove leading, trailing and double spacing in an address field.

Featured Replies

Here is my concern. I have an address field with house number, street name and street type, like this: 100 Main St.

Sometimes, when I import addresses, there are spaces at the beginning or at the end of the address, as well as more than one space between the street number and the street name. A field calculation seems required.

What's the best calculation to have these extra spaces removed, yet leave ONE space between house number, street name and ST, Ave, Lane, etc. ? It would be great to also remove any "periods". A field calculation seems required for my auto enter and manual enter, to correct all.

 

I'm thinking the same calculation could be used for my field collectively housing the first and last name as well?

 

Many attempts to resolve this on my end have failed. Any thoughts or maybe a solution?

 

Any help is appreciated greatly.

 

Have you looked at the custom functions at Brian Dunning's site? I believe that the Trim4 does what you want.

Use the TrimAll () and Substitute() functions:

 

Let(~trimmed = TrimAll(AddressField; 1; 2);

Substitute(~trimmed; "."; "")

)

 

See FileMaker's help page for definitions of the parameters.

  • Author

Thank you Lee and doughemi.

I did check Brian's Trim4.:

Let(~trimmed = TrimAll(AddressField; 1; 2);

Substitute(~trimmed; "."; "")

)

 

Did not do the trick........doughemi's solution is now working fluidly!!!

 

Thank you both again.....This is one AWESOME FM Forum!

Hey Doug, just curious why you used:  

 

TrimAll(AddressField; 1; 2)

 

Being Roman, why not use 0 and 0?

Hey Doug, just curious why you used:  

 

TrimAll(AddressField; 1; 2)

 

Being Roman, why not use 0 and 0?

 

ummm..because I didn't read the Filemaker 12 Developer Reference explanation closely enough?

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.