Sign in to follow this  
Followers 0
shawtayee

_ArraySearch returning 0

7 posts in this topic

Sorry but I need help again I will give you a code now, so you test on urself...

#include <IE.au3>
#include <Array.au3>

$oIE = _IECreate("http://www.dota-league.com/?section=instant/instant_single_game", "", 1)
        $oTable = _IETableGetCollection ($oIE, 1)
        $avArray = _IETableWriteToArray ($oTable, True)
        $check4feed = _ArraySearch($avArray, "cr3w.shawtayee")
        _ArrayDisplay($avArray)

If "cr3w.shawtayee" is in the table or not, $check4feed is always 0... why???

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Sorry but I need help again I will give you a code now, so you test on urself...

#include <IE.au3>
#include <Array.au3>

$oIE = _IECreate("http://www.dota-league.com/?section=instant/instant_single_game", "", 1)
        $oTable = _IETableGetCollection ($oIE, 1)
        $avArray = _IETableWriteToArray ($oTable, True)
        $check4feed = _ArraySearch($avArray, "cr3w.shawtayee")
        _ArrayDisplay($avArray)

If "cr3w.shawtayee" is in the table or not, $check4feed is always 0... why???

It's very simple , shawtayee.

You can't fix it. It's an AutoIt bug.

Edit /

try this :

$oIE = _IECreate("http://www.dota-league.com/?section=instant/instant_single_game", "", 1)

$oTable = _IETableGetCollection ($oIE, 1)

$avArray = _IETableWriteToArray ($oTable, True)

$checkforkantaki = _ArraySearch($avArray, "cr3w.shawtayee")

_ArrayDisplay($avArray)

Edited by kantaki

Share this post


Link to post
Share on other sites

Serious answers plz :)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

It's very simple , shawtayee.

You can't fix it. It's an AutoIt bug.

Edit /

try this :

lol or what?

@OP why did you opened another thread for this issue?, and... you should do some debugging yourself instead of expecting it from us

Edited by oMBRa

Share this post


Link to post
Share on other sites

lol or what?

@OP what did you opened another thread for this issue?, and... you should do some debugging yourself instead of expecting it from us

This is what i mentioned before.

User Error - Replace user.

Share this post


Link to post
Share on other sites

/push, I tried for hours now, I srsly need help from an expert, won't figure it out on my own, too noobish

Share this post


Link to post
Share on other sites

Try this...

CODE

#include <IE.au3>

#include <Array.au3>

$oIE = _IECreate("http://www.dota-league.com/?section=instant/instant_single_game", "", 1)

$oTable = _IETableGetCollection ($oIE, 1)

$avArray = _IETableWriteToArray ($oTable, True)

_ArrayDisplay($avArray)

$check4feed = _ArraySearch($avArray, "cr3w.shawtayee",0,0,0,1,1,2)

MsgBox(64,"found on row: ",$check4feed)

_IEQuit ($oIE)

This works cause its a partial search.

When you use StringStripWS on Column 2 then you don't need partial search. :-)

greetz

Sundance

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  
Followers 0