By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,985 Members | 1,776 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,985 IT Pros & Developers. It's quick & easy.

Removing leading zeros in an address field

P: 48
I am trying to remove the leading zeros from an address field. i.e
data: 00123 Elm st
result: 123 elm st.
Jan 12 '12 #1

✓ answered by Rabbit

Get the characters before the first space, convert it to a number, convert it back to a string, and append everything after the first space.

Share this Question
Share on Google+
2 Replies


Rabbit
Expert Mod 10K+
P: 12,349
Get the characters before the first space, convert it to a number, convert it back to a string, and append everything after the first space.
Jan 12 '12 #2

P: 48
thanks Rabbit. Good idea.
Jan 13 '12 #3

Post your reply

Sign in to post your reply or Sign up for a free account.