Support 805.461.7300
Sales
Our Technology. Your Success.

Remove Leading Zeros from Address

Description

This command will remove any leading zeros from the address field, e.g. 000345 Main St will convert to 345 Main St. More examples appear below.

The Command At Work

Before Command After Command
Before running command
Before running command

The Command

Copy this command, then paste it into the large text area of the command window:

Replace address with alltrim(str(val(left(address,at(" ",address)))))+substr(address,at(" ",address)) for left(address,1)="0"

After clicking RUN, the leading zeros in the address field will be stripped from the field, and the remainder of the address information will be left justified. Your addresses will now be ready for validation.

« Back to Commands

You are a genius and I have no excuse for not thinking of this before calling. Our customer is good with cutting the tops and bottoms for the booklets to get under 16 ounces. Thank you for getting me out of a jam and thank you even more for offering your help with this project! I decided to switch to AccuZIP after speaking with Steve at the Minuteman Show. I was impressed with his idea of customer service and you have totally proven him right.
M.M., Petaluma, CA