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 To Search for Number of Characters In A Field

Featured Replies

  • Newbies

I imported data into a FileMaker Pro 7 database. I want to search a particular field and find all the records with more than 10 characters, including spaces, in it. How do I use the Length(field) function to search in that field?

I don't think this has change in v7.

In the older version you could use the Length in a calculation like

Length(Text Field) <= 10 which will return a 1 if true and 0 if false.

HTH

Lee

  • Author
  • Newbies

so I can't get a found set of records that have more than 10 characters in a particular field?

I have thousands of records that need to be cleaned up and then imported into a new system. The new system has restrictions of how many characters can be used in a field. The old system did not. I have to capture the records that have more than so many characters in a particular field and shorten them or handle them differently.

Yes you can, just do a find in the calculation field for 1 or 0 to find the records you are wanting to work on.

Lee BigThumbUp.gif

  • Author
  • Newbies

So what I do is create a calculation field with Length(field) and do my find on that field instead?

A calculation of Length(Text Field) > 9 should do it, then search for 1 on it.

You could do multiple find requests like @@@@@@@@@@, @@@@@@@@@@@, @@@@@@@@@@@@, but that would quickly become annoying.

Uh, yeah that was your original questions wasn't it? How to use the Length(field) to isolate those fields that have more than 10 characters.

This is how I would set this up.

Two new field, g_Num and c_Length (if you have one or both of these set up, just subsitute your field names for mine.

g_Num

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.