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 all hyphens within a field

Featured Replies

I need a calculation that will display the contents of 1 field in another without the hyphens. For example...

MMM-45963-000-01

Should be displayed as

MMM4596300001

I'm using everything I can think of, such as Left and LeftWords functions, Mid functions, Position, etc., but I can't get it to remove them all.

I can't predict how many there are, but the most I've seen is 3.

If this would be better served using a looping script, I'm okay with that too.

Use the Substitute function

Put this in the data viewer to see how it works.


Let

(

[

text = "MMM-45963-000-01"

];

Substitute ( text ; "-" ; "" )

)

You could use the Filter function.

Your example only shows CAPs, so this would work

Filter ( YourField ; "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" )

Since you are using Advance, you could also do this using a Custom Function and zap the unwanted characters out instead (the opposite of the Filter Function where you tell FileMaker which characters to keep).

Check out Ray Cologon's Custom Function ZapChars found here

HTH

Lee

Edited by Guest

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.