Jump to content

Using StringInStr with quotes in substring


Recommended Posts

I'm having problems using StringInStr where the substring contains quote marks.

This example works ok:-

$sHTML= 'some words <td class="names" width="50"> some more words'

$location=StringInStr($sHTML,'<td class="names" width="50">')

----------------------

But in the following example, the function StringInStr($sHTML,'<td class="names" width="50">') fails to locate occurrences in the HTML body.

$sHTML = _IEBodyReadHTML ($oIE)

$location= StringInStr($sHTML,'<td class="names" width="50">')

Is this a bug, or am I doing something wrong? Help will be appreciated.

Link to comment
Share on other sites

  • Developers

There must be a difference somewhere in the string so the easiest is always to write the string ($sHTML) to a file and look at it with a Hexeditor.

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...