I worded this wrong.

1. What if the string is like 'St. Louis, MO'
- Will listfirst(stateETC, " ")> still work? There's no space at the end. So
would it just grab the whole string?

I should have said

What if the string is like St. Louis, MO', I remove the space after the
comma, and take the string after the comma and set stateETC to that value..
which in this case would be 'MO'

so stateETC = MO
- Will listfirst(stateETC, " ")> still work? There's no space at the end. So
would it just grab the whole string? which would be 'MO'?


About the format.

Users will be asked to enter a location like "City, STATE or ZIP aka 'St.
Louis, MO' or '62221'

So in almost most cases, the data provided won't need to pass through these
mechanisms, and will match up as is. I just need to check if the location
they entered is in valid format, check the data against a database, and let
the user know if it was an acceptable location or not.

In the case that someone enters in a location like 'St. Louis, MO I HATE
CHICKEN' I'd like to at least be able to pull the 'St. Louis, MO' out of the
string and work with that.

-- 
Open BlueDragon Public Mailing List
 http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
 mailing list - http://groups.google.com/group/openbd?hl=en

 !! save a network - please trim replies before posting !!

Reply via email to