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.

Detecting Line Breaks

Featured Replies

I am trying to count the number of lines in a text field. I can count the words by counting the number of blank spaces, but what does FM use for line breaks?

FM uses the carriage return symbol

Use "

(And quick on the trigger, we might add...)

  • Author

What I am trying to do is get around the 10 page limit for printing. I have some of these going to 30+ pages and the doctors and nurses are tired of doing a c/p. So what I need to do is split up the data in the field into different fields like theField1, theField2 etc and then print them.

So now that I can count the lines, I need to break up the data based on the count. Got a quick script for that? (I'll be off trying different things just in case).

You could use calculation fields like:

field1: Left( text, Position( text & "

  • Author

Ahhhh that does the trick. I was doing something similar in my trials. This is just a little cleaner than the roundabout way I was going at it.

TYVM

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.