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 5274 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted (edited)

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

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