Jump to content
Sign in to follow this  
ehdtkqorl123

Question about _IEBodyReadText ()

Recommended Posts

ehdtkqorl123

Here is the code

$oIE = _IECreate ("http://asdf.com", 0, 0)

Global $sText = _IEBodyReadText($oIE)

_IEQuit($oIE)

Msgbox(0, "", StringInStr("asdf", $sText))

Question is that I am wondering why that StringInStr(..) returns 0 even though asdf.com contains asdf on its page.

Somehow when I print $sText, it is displayed as multiple lines..

Something like

About asdf

What is asdf ?

asdf Forums

If a variable contains these three lines, for example, how can I find the position of "is"?

It doesn't seem like each line is concatenated with \n character

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.