Title should read "search a string for ',' "
Afternoon folks. I visit this site a bit, especially when searching google for help on a particular problem. This is my first post, so let me get right to the point.
I won't go into the gory details of the program, only what I think is relevant. I'm working with date strings which will be read into the program in two formats:
"November 29, 2005"
or
"11 29 2005"
What I am attempting to do, but can't figure out, is set up an if/else control. Here is the psuedocode of what I'm trying:
if (string contains a ',')
//do this
else //string contains no ','
//do this
So basically, I need to search the string for a comma, and if it finds one, process it with the following, else, do something else.
I know this isn't highly technical. I figured psuedocode would accomplish what I'm seeking.
Thanks in advance!
Val