Jump 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.

Featured Replies

Hi,

Is there a way to clean-up the database by removing all the unwanted carriage returns (CR) and line feeds (LF). I don't want to do it manually by going to each value and deleting this unwanted special lower level characters. Some kind of script or option in Filemaker would be good.

Thanks,

Max

Edited by Guest

What is this "unwanted special lower level character" ? Can you post a sample of what the data looks like and then what you want it to look like?

  • Author

When I import tables from Filemaker to SQL Sever, for some values, I get characters at the end of the value that look like small boxes. I found out that these characters were actually CR or LF characters which were already present in the source tables in Filemaker (a data entry problem). This creates problem when I am writing queries in SQL. For example, take a value of field Empl_Name as John, so a value John is treated differently than John{CR or LF} but these characters are not visible in Filemaker.

So, is there a way to clean all the tables by removing these unwanted linefeeds of carriage returns.

Thanks,

Max

Use Substitute with a looping script to clean out the character from all records before they are exported

  • Author

Do you have a sample of the script?

Thanks,

Max

pseudo code:

Goto first record

Set field Textfield, Substitute(Textfield,"unwanted cr character","")

Loop

Goto next record (exit after last)

Set field Textfield, Substitute(Textfield,"unwanted cr character","")

End loop

  • Author

Thank yo so much. Let me work on this one.

Thanks,

Max

  • Author

is Substitue available in FMP 8???

Yes,

You will find it in the List of Functions (Right Top) of the Calculation Edit Box.

HTH

Lee

Just as a FYI, you could also use 'Replace field contents' with specified results to use it on your found set without a loop script. If you want it on all the records, just do a show all records first.

and...

Caution. You can't Undo these functions. So, you should test this on a copy of your file, not original.

Lee

  • Author

Thank you all...you have been of great help.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

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.