Alisonr Posted November 1, 2010 Share Posted November 1, 2010 (edited) 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 November 1, 2010 by Alisonr Link to comment Share on other sites More sharing options...
ZacUSNYR Posted November 1, 2010 Share Posted November 1, 2010 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 More sharing options...
Alisonr Posted November 1, 2010 Author Share Posted November 1, 2010 This is what I was looking for... Thanks! 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