$list from table
From UBot Studio
(Difference between revisions)
Line 8: | Line 8: | ||
'''Index:''' The number of the desired column or row within the table. For example "Row 1". | '''Index:''' The number of the desired column or row within the table. For example "Row 1". | ||
+ | |||
== Example == | == Example == | ||
+ | |||
<pre> | <pre> | ||
Revision as of 18:57, 21 May 2013
$list from table is a Data Function.
This function will return the contents of a specified row or column as list items. The function is used along with the add list to list command to create a list with the contents of a table.
Table: The populated table with the desired items.
Row or Column: Allows the return of the contents of an entire for or an entire column as a list.
Index: The number of the desired column or row within the table. For example "Row 1".
Example
navigate("http://w3schools.com/html/html_colornames.asp", "Wait") wait(3) scrape table(<innertext="Color Name">, &MyTable) add list to list(%my list, $plugin function("TableCommands.dll", "$list from table", &MyTable, "Row", 0), "Delete", "Global")
Running this script will populate the list with the contents in Row 0.
navigate("http://w3schools.com/html/html_colornames.asp", "Wait") wait(3) scrape table(<innertext="Color Name">, &MyTable) add list to list(%my list, $plugin function("TableCommands.dll", "$list from table", &MyTable, "Column", 0), "Delete", "Global")
Running this script will populate the list with the contents in Column 0.