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

Address String Question

P: n/a
Hi,

In my application I need the user to input an address. This application
connects to multiple application via web services. Each application has its
own unique business rules. One of the applications needs the address to be
broken up into peices (Number, Predirection, Street, and Postdirection). I
do not want to break up my address input on the form, I just want one field.
Any ideas how to accomplish this without breaking up the street?

Thanks
Jan 29 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
You could specify to the user to put commas between the parts and split the
string on those. Then try and work out which bits fall where and show the
user the different parts for them to check. This is what outlook does.

--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
"Levi" wrote:
Hi,

In my application I need the user to input an address. This application
connects to multiple application via web services. Each application has its
own unique business rules. One of the applications needs the address to be
broken up into peices (Number, Predirection, Street, and Postdirection). I
do not want to break up my address input on the form, I just want one field.
Any ideas how to accomplish this without breaking up the street?

Thanks
Jan 29 '07 #2

P: n/a
"I do not want to break up my address input on the form"

lol....well tough. That's the best way.
"Levi" <le**@us.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Hi,

In my application I need the user to input an address. This application
connects to multiple application via web services. Each application has
its own unique business rules. One of the applications needs the address
to be broken up into peices (Number, Predirection, Street, and
Postdirection). I do not want to break up my address input on the form, I
just want one field. Any ideas how to accomplish this without breaking up
the street?

Thanks

Jan 29 '07 #3

P: n/a
On Sun, 28 Jan 2007 21:29:27 -0700, "Levi" <le**@us.comwrote:
>Hi,

In my application I need the user to input an address. This application
connects to multiple application via web services. Each application has its
own unique business rules. One of the applications needs the address to be
broken up into peices (Number, Predirection, Street, and Postdirection). I
do not want to break up my address input on the form, I just want one field.
Any ideas how to accomplish this without breaking up the street?

Thanks
Ciaran has given you what is probably the best way to do what you want. The
alternative would be to split the address on spaces, but I think doing so would
add much complexity to your parsing logic, since addresses are a free flow
entry. I suspect the developers at Microsoft, Google and all the other mapping
applications spent a lot of time figuring that out.
Good luck with your project,

Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com
Jan 29 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.