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.

keeping leading zero's on export

Featured Replies

How do I keep the leading zeros on an export from FM 4.1? The field name is called "mail_code", it is a text field not a numeric field and there isn't any calculations going on.

Basically this is what the data is in the "mail_code" field:

0234

0061

0432

0003

0893

etc...

what I get:

234

61

432

3

893

HELP!!!!!

Josh

I'd suggest double-checking the it isn't a number field. How are you exporting -- tab delimited or something else?

  • Author

I am positive it isn't a date or number field. I have tried exporting CSV, TAB, CSV, DBF and MER. I have also tried all of the character formats, Windows, DOS, Mac and Lotus.

I am positive it isn't a date or number field.
  • Author

Yes I am "Positive" and yes I did go over to the actual machine t check. Why would I lie to ya?

What software are you using to open and look at the exported file? In other words, are you sure that it isn't the target application that is stripping the leading zeroes?

  • 2 weeks later...

quote:

Originally posted by BobWeaver:

What software are you using to open and look at the exported file? In other words, are you sure that it isn't the target application that is stripping the leading zeroes?

Bob has a good point. For example, the standard behaviour of Excel 97, is to strip off leading zeroes, if you "drag" the file into Excel. If you import it with the File->Open command in Excel, you must change the default data type value of the column containing the values. I don't remember what it is called, sorry...

/Daniel

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.