Jump to content
Server Maintenance This Week. ×

Find & Replace Script


This topic is 7033 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

I am fairly new to FileMaker Scripting and would like to generate a script which would search a field containing people's last names, and have the script remove any hyphens, apostrophes, spaces etc., and replace them with nothing.

e.g. find "De La Cruz" and replace it with DeLaCruz, or O'neil to be replaced with Oneil.

Any guidance would be appreciated.

Link to comment
Share on other sites

Show All Records

Freeze Window

Go to Record/Request/Page [First]

Loop

Set Field [LastName; Filter( LastName; "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" )]

Go to Record/Request/Page [Exit after last; Next]

End Loop

Link to comment
Share on other sites

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