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.
Juggernaut

Featured Replies

I need to import data. The company I'm importing data from uses leading zeros in their corresponding number field.

ie:

my field: 758426

their field: 00758426

I need a calculation field that will ignore the leading zeros.

Any help would be greatly appreciated.

Thanks.

Try

Substitute (Your Field ; "0" ; "")

Michael

Wow, this is a twist. Usually we're asked about how to preserve them.

FileMaker used to strip the leading and trailing zeros of number in a Number Result Field. However, this was changed. If you are importing into a number field, then the number shouldn't be changed.

Can you give more detail of what you are doing, and what is happening?

Lee

[color:red]p.s.

AFAIK, calculations ignore leading and trailing zeros.

Edited by Guest
p.s.

  • Author

Thanks for your suggestion...

I need to ignore only the leading zeros...not all zeros. Also, I do not want to ignore trailing zeros

ie: 00780508 should have a calculated result of 780508

ie#2: 00507500 should have a calculated result of 507500

Edited by Guest

If it's always just 2 zeros you could use this.

Replace (Your Field; 1; 2 ; "" )

Michael

A calculation (number ) with numberField will drop leading zeros and it will work in an auto-enter (replace) number as well.

GetAsNumber( field ) should do the trick, too.

Hi Vaughan!! :smile2:

Yep, but why waste an evaluation if the resulting field needs to be number anyway?

  • Author

Hi LaRetta,

Sorry I'm not tracking with you...can you give me an example of the calculation?

Thanks

Go to your number field - the one you are importing into. Add under the Auto-Enter tab, by calculation. And just insert that same field again. When you leave the calculation, be sure that 'Do Not Replace Existing Value is UNCHECKED. This is based upon your number field being truly a number.

OR

Create a calculation, number. In the calculation box, only insert this number field.

This why I like Filemaker, there are so many ways to do the same thing......lol

  • Author

WOW...thanks LaRetta and Vaughan.

Both answers are great.

Blessings, kcep

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.