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

Splitting a text field

Featured Replies

Hi,

I need some help. I have a notes field that has ¶ characters in it. I would like to be able to replace ¶ with carriage returns so that my notes are not bunched up. See below for example:

Title: correct target audience, req. copy of BXL¶Description: ¶Title: DS: has not read the info. ring tuesday¶Description: ¶Title: DS-ring early next week¶Description: ¶Title: DS-Ringing bck, has not read BXL yet¶Description: ¶Title: DS-Patrick, int. but not for4-6 weeks¶Description:

How can I do this?

You could just use a replace function on the field and use this as the calculation.

Substitute(Your Field; ¶ ; ¶&¶&¶)

That will add 3 returns where 1 is now.

But you may also want to consider breaking off the notes to a seperate related table if there are too many and many more will be added.

Michael

  • Author

Thanks I will try it and let you know how I get on. This database is just a test DB that I'm using to experiment with. I'm trying to improve my scripting knowledge.

:

  • Author

Sorry to be a pain but should I use replace field contents and then use the substitute (my field;¶;¶&¶&¶)

For the replace field contents script step, there is a target field which would be the field that you are trying to change, and under that button is another where you can choose to specify the result option. Once you click that, a popup will display, where you can choose 'Replace with calculate result'. That is where you put substitute (YourField; ¶;¶&¶&¶)

  • Author

I thought that was the case but this doesn't replace the ¶ in my field.

At the moment field looks like this

Title: Sent email¶Description: From: Peter Woodvine¶To: [email protected]

I would like it to look like this

Title: Sent email

Description: From: Peter Woodvine

To: [email protected]

I know this is really simple but I'm stuck big time!

Try:

Substitute ( Yourfield ; "¶" ; ¶ )

Comment that does exactly what he wants, but what does the "" do in this?

Michael

Its an escape character. It seems as though his Pilcrow was literal, so it had to be escaped in order to substitute it out. I didnt realize that it was a literal pilcrow either until his followup post.

  • Author

Thanks guys. my fault I should have explained myself better. What's a Pilcrow?

Thanks for the explanation Vodka.

A Pilcrow = ¶

Michael

  • Author

Excellent it worked!

I spent ages trying to figure this out. Maybe I can help you out some day.

Thanks again. I can sleep now.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.