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

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

Recommended Posts

  • Newbies
Posted

I am importing a field containing an eight digit number (with four preceeding zeros) from a pc database (using excel spreadsheets) and need to knock off the zeros once in filemaker. Is there a script I can use to get rid of the four preceeding zeros? My experience with scripts is limited - have never written one myself, only selected from a list. Please help. Thanks.

Posted

Hi Maimew,

The field should be numeric, then just apply this script:

Go to Record/Request/Page

[ First ]

Loop

Set Field [ YourNumberField, YourNumberField]

Go to Record/Request/Page

[ Next, Exit after last ]

End Loop

If you set a numeric field to itself, it will strip the leading zeros for you! smile.gif If this is just a one-time thing, you can also use Records > Replace Contents.

LaRetta

Posted

Or,

put your cursor in the number field, go to the Menu - Records - Replace and click on the box thas says Specify. In the calculation Dialog box, select your number field and then Okay, and then the Button Replace.

You can also do this with a script as pointed out by LaRetta

Lee

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