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

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

Recommended Posts

Posted

I have a text field. Each field has a single entry with varied numbers of leading zeros..."00345", "01025. These numbers are house numbers in an address. I need to remove the leading zeros from the data. Is there a function available that would trim the zeros out?

Posted

just make it a number field and set the display options ...

or use an aux calc field TexttoNum(field1)

Posted

OK, this is Scriptmaker forum, so

SetField field1, TextoNum(field1)

replace all would do also....

Posted

Hi,

If the zero-leading numbers exist within an address line (and it sounds like they do), then using Set Field (I think) will remove all text and leave just the number. And if the address is something like 03480 W. 18th, the '18' will also remain. I hope a backup is being implemented before trying any solution.

Linda

Posted

So what does your result do for this situation.

00123 S. Street Apt 101

When it returns this "123101"

Lee

Posted

Hi Lee,

I think he mentioned something about

>single entry with varied numbers of leading zeros

so I assumed he already used the WordsLeft() function to extract the house numbers into a separate field ...

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