alpignolo
08-31-2013, 12:35 PM
Hello,
I have a problem in finding the position number of a string, using the function Instr().
I need to search for a string containing the " character, like:
<meta itemprop="price" content="
I would use something like:
stringAll = htm.body.innerHTML
X = "<meta itemprop=" & chr(34) & "price" & chr(34) & " content=" & chr(34)
position = Instr(1, stringAll , X, vbTextCompare)
but it returns 0.
What could be wrong with this piece of code?
Thank you
Alpignolo
I have a problem in finding the position number of a string, using the function Instr().
I need to search for a string containing the " character, like:
<meta itemprop="price" content="
I would use something like:
stringAll = htm.body.innerHTML
X = "<meta itemprop=" & chr(34) & "price" & chr(34) & " content=" & chr(34)
position = Instr(1, stringAll , X, vbTextCompare)
but it returns 0.
What could be wrong with this piece of code?
Thank you
Alpignolo