$table search
From UBot Studio
(Difference between revisions)
Line 16: | Line 16: | ||
In this example, searching for the Row index of the string "BlueViolet" returns the Row number 10. | In this example, searching for the Row index of the string "BlueViolet" returns the Row number 10. | ||
+ | |||
+ | |||
[[File:tablesearch.jpg]] | [[File:tablesearch.jpg]] | ||
+ | |||
+ | |||
Line 27: | Line 31: | ||
set(#search, $plugin function("TableCommands.dll", "$table search", &mytable, "BlueViolet", "Column Index"), "Global") | set(#search, $plugin function("TableCommands.dll", "$table search", &mytable, "BlueViolet", "Column Index"), "Global") | ||
</pre> | </pre> | ||
+ | |||
+ | |||
In this example, searching for the Column index of the string "BlueViolet" returns the Column number 0. | In this example, searching for the Column index of the string "BlueViolet" returns the Column number 0. | ||
+ | |||
+ | |||
[[File:tablesearch0.jpg]] | [[File:tablesearch0.jpg]] |
Revision as of 10:58, 11 April 2013
$table search is a Variable Function.
This function will return the row index or the column index where a specific string is located in a table.
Example
clear table(&mytable) navigate("http://w3schools.com/html/html_colornames.asp", "Wait") wait(3) scrape table(<innerhtml="Color Name">, &mytable) set(#search, $plugin function("TableCommands.dll", "$table search", &mytable, "BlueViolet", "Row Index"), "Global")
In this example, searching for the Row index of the string "BlueViolet" returns the Row number 10.
clear table(&mytable) navigate("http://w3schools.com/html/html_colornames.asp", "Wait") wait(3) scrape table(<innerhtml="Color Name">, &mytable) set(#search, $plugin function("TableCommands.dll", "$table search", &mytable, "BlueViolet", "Column Index"), "Global")
In this example, searching for the Column index of the string "BlueViolet" returns the Column number 0.