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.

Revisited: line count in wrapped text box

Featured Replies

This has been discussed a long time ago (see topics 34637 and 41683 for instance). Can anyone comment on the solution suggested by http://www.filemaker.com/support/kb/?answers/detail/a_id/1008 ? The field ¦ in not PatternCount(TextField, "¦") >= 1 suggests the existance of a 'soft carriage return as a result of wraparound'. Puzzled !

What exactly is your question?

  • Author

ah sorry: does anyone know this strange character ¦ ? And what is your comment on the suggestion by http://www.filemaker.com/support/kb/?answers/detail/a_id/1008 that this character may signify the soft return that is caused by the wraparound? If that were the case I could simply count the number of occurences and hence the number of lines in the textbox. Unless I completely misunderstood question (hard to believe) and answer in this knowledge base item. Thanks a lot in advance !

I think it's a very old article and it probably underwent some conversion and didn't survive too well. The original formula must have been:

not PatternCount(TextField, "¶") >= 1

which, if true, indicates there are no HARD returns in TextField.

  • Author

I never thought of that ! Guess I'll have to live without it then. A monospaced font is no option here in the solution I'm building

You still haven't said what do you need and for what purpose. The rendering of text on screen is done on-the-fly, and can vary from system to system, between screen and print, different printers, etc.

  • Author

On the layout there is only room for max 7 lines of text. I want to restrict the user to input more than that.

As a user, I would find that extremely annoying. But if you really need this, I suggest reading these:

http://fmforums.com/forum/showtopic.php?tid/188854/post/302857/#302857

http://fmforums.com/forum/showtopic.php?tid/209552/post/333967/#333967

http://fmforums.com/forum/showtopic.php?tid/211026/post/340199/#340199

  • Author

Thanks, some good suggestions here ! Unfortunately I can't use any font size changes, since the document layout is made obligatory (by the government).

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.