Community
Referral Program
Testimonials [More...]
Product Family
AccuZIP6 5.0
AccuMUV™ NCOALink®
AccuMUV48™ ANKLink
AccuMUVXtreme™
Palletization
MAIL.DAT
Bound Printed Matter
Tags Module
ACS™ Module
Order Tags
Support
AccuZIP6 Updates
AccuZIP6 Forum
Webinars
Commands
Technotes
iSite Support
Live Chat
Technical Support
AccuZIP6 Sales
endcap

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.

 

© 2008 AccuZIP Inc