I'm trying to find the index of "some text", including the quotations. I've tried a few ways to escape the quotations but all have failed, resulting in an index of -1
Example...
Is there anyway to get the index of a text that contains quotes?
Thanks,
-Chris
Example...
Code:
Dim txtFile as String
Dim txtIndex as Integer
txtFile = 'Some text file
txtIndex = txtFile.IndexOf(Chr(34) & "some text" & Chr(34)) ' Index = -1, failed.
txtIndex = txtFile.IndexOf("""some text""") ' Index = -1, failed.
Thanks,
-Chris