Jump to content
Sign in to follow this  
Alisonr

IE and Array Question

Recommended Posts

Alisonr

I'm using the following code to move an html data table into an array.

$oTable = _IETableGetCollection ($oIE,2)

$avArray = _IETableWriteToArray ($oTable, true)

Using "_ArrayDisplay($avArray)" I can see the array:

Row Col0 Col1

[0] |Vda |Qtd

[1] |72245 |6

[2] |72250 |5

[3] |72255 |23

[4] |72260 |5

[5] |72265 |25

I need to retrieve the value "72245" (Row[1], Col0) into a variable.

Please let me know how to perform this.

Thanks.

Edited by Alisonr

Share this post


Link to post
Share on other sites
ZacUSNYR

I'm using the following code to move an html data table into an array.

$oTable = _IETableGetCollection ($oIE,2)

$avArray = _IETableWriteToArray ($oTable, true)

Using "_ArrayDisplay($avArray)" I can see the array:

Row Col0 Col1

[0] |Vda |Qtd

[1] |72245 |6

[2] |72250 |5

[3] |72255 |23

[4] |72260 |5

[5] |72265 |25

I need to retrieve the value "72245" (Row[1], Col0) into a variable.

Please let me know how to perform this.

Thanks.

What do you mean? It already is a variable - in the array. $avArray[1][0] is the variable. If you want it by itself you can $myvariable = $avArray[1][0] but not sure why you would want to do that.

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.