You're always going to show the last city because your variable "foundPosition" is being reset to cityName.Length-1 each time you execute the first loop. Your 2nd loop is not taking your "All"...
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: Max Peck Search: Search took 0.03 seconds.
Results 1 to 1 of 2
|
Click Here to Expand Forum to Full Width |