January 20, 200521 yr 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.
January 20, 200521 yr 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
January 21, 200521 yr Author Newbies cheers for that, works perfectly, although I did have to remove the "Freeze Window" in order for it to work.
January 21, 200521 yr That is odd. All Freeze Window does is keep the screen from updating as the loop progresses. It should work with or without it. What happened when you kept it in?
Create an account or sign in to comment