Jump to content

How do I strip trailing blanks from text fields?


baktus
 Share

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

Recommended Posts

  • 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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 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

Link to comment
Share on other sites

This topic is 6434 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
 Share

×
×
  • Create New...

Important Information

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