Jump to content

IE and Array Question


Alisonr
 Share

Recommended Posts

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
Link to comment
Share on other sites

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.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...