Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

How do I strip trailing blanks from text fields?


This topic is 7474 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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

Posted

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

  • Newbies
Posted

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

This topic is 7474 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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