Skip 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.

Trying to trim leading zeros in text field.....

Featured Replies

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?

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

or use an aux calc field TexttoNum(field1)

OK, this is Scriptmaker forum, so

SetField field1, TextoNum(field1)

replace all would do also....

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

  • Author

Thanks.... I used the following solution and it worked...

.... use an aux calc field TexttoNum(field1)

So what does your result do for this situation.

00123 S. Street Apt 101

When it returns this "123101"

Lee

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 ...

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

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.