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.

How do I strip trailing blanks from text fields?

Featured Replies

  • Newbies

I have a large database, imported from Oracle. It contains an ID field which has been manually entered, and is padded with trailing blanks. Inside this string there is a 4-digit serial number that I try to put into a calculation field.

My problem: There is an unknown, random number of trailing blanks, how do I strip them out in the calculation?

-Baktus

Try: Substitute(IDfield;" "; "")

Hi Baktus,

Welcome to the list.

Have you tried the Trim Function.

All you need to do is to wrap your current calculation inside it like this:

Trim(YourCurrentCalculation)

If I have confused you, please come back and let me know.

Also, take a look at the Online Help available within FileMaker. Just type the word Trim in "Index" window, and it will take to Trim Function, hit the Display button and you will see an example or two of what I mean.

HTH

Lee

cool.gif

  • Author
  • Newbies

Thanks, Lee!

This was just what I needed, I have tried and it works fine!

It has been a few years since I worked with FMPro, I used to be member of this forum way back then... nice to be back!

rgds,

Baktus

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.