Jump to content
Sign in to follow this  
scriptdude

Using StringInStr with quotes in substring

Recommended Posts

scriptdude

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.

Share this post


Link to post
Share on other sites
Jos

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 Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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
Sign in to follow this  

×