Quantcast
Viewing all articles
Browse latest Browse all 1685

@index not working when the haystack string contains a comma

Please look at the following statements.
C:\Program Files\JPSoft\TCMD31\ > set text=Heines, Jesse C:\Program Files\JPSoft\TCMD31\ > echo %@index[%text,J] 0 C:\Program Files\JPSoft\TCMD31\ > set text=Heines Jesse C:\Program Files\JPSoft\TCMD31\ > echo %@index[%text,J] 7

Clearly, when the haystack string (string1 in the documentation for @INDEX) contains a comma, @index fails. I have tried all the escaping the comma to no avail. To me, this is clearly a bug. Am I wrong? Am I...

Read more

Viewing all articles
Browse latest Browse all 1685

Trending Articles