well you could split it by the spaces but that would create 3 items and the last one would be the zip code:
Dim theItems() as String = theString.Split(new Char() {" "})
MessageBox.Show(theItems(theItems.Length - 1).ToString())
another way would be to get the lastindex of a space from that string:
Dim theZipCode as String = theString.SubString(theString.LastIndexOf(" "))
One other way would be to use Regex - regular expressions but can be expensive. I'm not great at regex but some members here are and there is of course the resources from your fav search engine ;-)
Does this help?
Need 2 be back @ MS - MS All the way! Follower since 1995 MS Super Evangelist| MSDN Forums Moderator |