Gif Posted July 21, 2007 Posted July 21, 2007 ok now im in a real hurry, its now or (in a week) so please helpi want to get the values of all the rows in a table and create a listviewitem for each one..here is the site where i want to get the table from... i already know IETableGetCollection() and _IETableWriteToArray() but can i create listviewitems for each row? im having trouble with _IETableWriteToArray() and the help file is not helpful at all...helpppp
BrettF Posted July 21, 2007 Posted July 21, 2007 ok now im in a real hurry, its now or (in a week) so please helpi want to get the values of all the rows in a table and create a listviewitem for each one..here is the site where i want to get the table from... i already know IETableGetCollection() and _IETableWriteToArray() but can i create listviewitems for each row? im having trouble with _IETableWriteToArray() and the help file is not helpful at all...helppppDo you have some code you tried?? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
Gif Posted July 21, 2007 Author Posted July 21, 2007 (edited) Do you have some code you tried??im completely unaware of arrays :"> $oTable1 = _IETableGetCollection($oIE, 0)$aTableData1 = _IETableWriteToArray($oTable1)$array = _ArrayCreate($aTableData1)PS:i also tried _arraydisplayEDIT: i did..$oTable1 = _IETableGetCollection($oIE, 0)$aTableData1 = _IETableWriteToArray($oTable1)$array = _ArrayDisplay($aTableData1, "Array")it displays the array but its completly false, it only gets the headers and with "strange" symbols..Any possible solution to this? im really messed up! and if there could be a workaround e.g. using _IEdocreadhtml and using stringsplits and stuff like that to get strings between <td>? Edited July 22, 2007 by c4nm7
DaleHohm Posted July 22, 2007 Posted July 22, 2007 The return value of _IETableWriteToArray is an array, so don't try to use _ArrayCreate on it. Sorry you're in a hurry, but you're going to have to spend some time working through the concept of arrays. There is a lot of good info in the helpful regardless of your comment in the first post. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble
Gif Posted July 22, 2007 Author Posted July 22, 2007 The return value of _IETableWriteToArray is an array, so don't try to use _ArrayCreate on it. Sorry you're in a hurry, but you're going to have to spend some time working through the concept of arrays. There is a lot of good info in the helpful regardless of your comment in the first post. Dale ok, i got the array from the table and its perfect, but i want now the array to be displayed in listview items, i tried $oTable1 = _IETableGetCollection($oIE, 3) $aTableData1 = _IETableWriteToArray($oTable1) Dim $ArrayStr = _ArrayToString($aTableData1 ,"|", 2) For $u = 0 To UBound($ArrayStr) - 1 GUICtrlCreateListViewItem($ArrayStr[$u], $ListView) next but it doesnt even get the String from the array, can anyone help me here? i simply want to create list view items, is there any other way?
DaleHohm Posted July 22, 2007 Posted July 22, 2007 I suggest you open another post that focuses just on populating a ListView from an array. You might get an answer here, but many of the people who are GUI experts avoid anything with IE in the title. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble
Moderators big_daddy Posted July 23, 2007 Moderators Posted July 23, 2007 I've made several examples in the past.Example 1Example 2Example 3
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