Address String Question

  • Thread starter Thread starter Levi
  • Start date Start date
L

Levi

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
 
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.
 
"I do not want to break up my address input on the form"

lol....well tough. That's the best way.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top