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.

Line Break produces a square in FM...???

Featured Replies

I've got an ASP web script that runs updates on some Filemaker records. One of the things it does is includes notes in the Invoice records. It includes line-breaks in the notes to keep it nice and clean and that does work, however, in FM you end up with a little square at the end of each line where my script put in a line break. Is there any way to make this stop happening? It's a little annoying. Any information would be greatly appreciated. If you'd like a look at what I'm talking about you can see an example here: http://www.dealsdirectinc.com/temp/fmNotes.jpg

Thanks!

You could use the Substitute function to remove the line breaks.

Substitute(MYTABLE::myfield; "The Line Break Character"; "")

This could be use in an auto-enter calculation or a script.

Or, you can remove the line break character from the ASP script.

  • Author

Well, I can't remove the line break from the script because then all of the notes would be all smashed together on that one line. You see how they're nicely broken apart with a date for the notes, and a name, etc? I can't lose that.

Wouldn't using substitute do the same thing? Remove the line-break, thus bring everything together?

Not sure what language you're using in your ASP page but I'm going to assume it's VBscript.

FM uses chr(13) internally for line breaks, so if you replace vbCrLf in your text with chr(13) before you put the data into FM you'll have your line breaks without the squares.

  • Author

You are exactly right and that fixed the problem beautifully. Thanks!

For those who have no idea what we're talking about here:

FM uses Ascii 13 (CR - carriage return) for returns. Windows uses Ascii 13 + Ascii 10 (carriage return + line feed, hence the vbCrLf). When you put the Windows line break inside a FM field the Ascii 10 shows up as a white square.

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.