Jeff M Posted August 13, 2010 Posted August 13, 2010 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.
Drew Sanderson Posted August 13, 2010 Posted August 13, 2010 Put this in the data viewer to see how it works. Let ( [ text = "MMM-45963-000-01" ]; Substitute ( text ; "-" ; "" ) )
Lee Smith Posted August 13, 2010 Posted August 13, 2010 (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 August 13, 2010 by Guest
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now