- Aug
- 47
- 2
Please look at the following statements.
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 misunderstanding something significant?
Thank you.
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 misunderstanding something significant?
Thank you.