T
Timo
I'm trying to parse a plain text string containing time values having
various irregularities (e.g. "12:30 P.M.", "4 AM", "5pm", "4:00 AM", "4 :00"
and so on). I need to grab the chunk to the left and right of the colon,
but I can't get InStr to correctly return the position of the colon in the
string. It always returns -1 as though the string did not contain a chr(58).
But I've confirmed that it does indeed contain this character. Is the colon
a reserved character that InStr cannot handle?
TIA
various irregularities (e.g. "12:30 P.M.", "4 AM", "5pm", "4:00 AM", "4 :00"
and so on). I need to grab the chunk to the left and right of the colon,
but I can't get InStr to correctly return the position of the colon in the
string. It always returns -1 as though the string did not contain a chr(58).
But I've confirmed that it does indeed contain this character. Is the colon
a reserved character that InStr cannot handle?
TIA