Jump to content

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

Recommended Posts

Posted

i have an inventory system that deals with strictly 8-digit numbers. so i want to be able to have leading zeroes to display something like 00002367.

i can enter that into a number or text field, but if the number is changed via a script, FM always truncates the leading zeroes which results in a correct number, but incorrect display. is there a nifty text function perhaps, so that the output will always have 8 digits?

Posted

You can use the following calc to convert the data in a number field to text with leading zeros.

Left("00000000",Length("00000000")-Length(NumberField))&NumToText(NumberField)

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