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

FM Losing Zeros?

Featured Replies

Howdy,

I'm trying to create a simple calculation field. The field combines two other fields into one. The first of the fields is simply text (ie: ABC), the other field is a serialized number field (ie: 00123). The problem I'm running into is when I try to combine the fields, using a simple calc, FileMaker truncates the leading zeros in my serialized number (ie: ABC + 00123 = ABC123, no zeros).

a) Why on earth does FileMaker drop the zeros?

:( Is there a simple way around this issue?

As always, thanks for any/all help.

Cheers...

Tigerstrike smile.gif

Check your field definitions. You probably have one set to number when you want it set to text. 0123 is an acceptable text value, but will become 123 when it is used in a calc unless both it and the calc are set to be text.

HTH,

Dan

I agree, Dan. A serial of 0023 really isn't a number anyway - it is text. But one could leave that as a number if they wished and use text & Right("00000" & num, 5) to convert it pretty easily. smile.gif

TigerStrike, your resultant calculation should for sure be text however.

Hi Tigerstrike,

Why shouldn't FileMaker dorp them?. They have no value when used as leading zeros in a numeric field. However, if the field is Text, then they have value as characters, and will be retained.

Change the field to Text and you will have your leading zeros.

HTH

Lee wink.gif

  • Author

MoonShadow,

Man, that calc worked like a charm! Thanks much!

Cheers,

Tigerstrike

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.