scriptdude Posted July 15, 2008 Share Posted July 15, 2008 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 More sharing options...
Triblade Posted July 15, 2008 Share Posted July 15, 2008 Maybe try: _IEDocReadHTML It is stange though. But if this doesn't, post or try to find out what the output of $sHTML generates. My active project(s): A-maze-ing generator (generates a maze) My archived project(s): Pong3 (Multi-pinger) Link to comment Share on other sites More sharing options...
Developers Jos Posted July 15, 2008 Developers Share Posted July 15, 2008 (edited) 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 July 15, 2008 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now