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

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

Recommended Posts

Posted

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

Posted

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

Posted

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.

Posted

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

This topic is 7435 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.