Add List to Table As Row

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Example)
Line 16: Line 16:
 
<pre>
 
<pre>
 
navigate("http://www.fruitsinfo.com/tropical-fruits.php", "Wait")
 
navigate("http://www.fruitsinfo.com/tropical-fruits.php", "Wait")
 +
wait(3)
 
add list to list(%one, $scrape attribute(<href=w"http://www.fruitsinfo.com/*.php">, "innertext"), "Delete", "Global")
 
add list to list(%one, $scrape attribute(<href=w"http://www.fruitsinfo.com/*.php">, "innertext"), "Delete", "Global")
 
add list to table as column(&test1, 0, 0, %one)
 
add list to table as column(&test1, 0, 0, %one)

Revision as of 21:09, 23 September 2013

Add List to Table As Row is a Data Command.

This command inserts a list into a table at a specified location as a row.

Table: The table the list is being added to

Starting Row: The starting row where the list will be added to

Starting Column: The starting column where the list will be added to

List to Add: The list that is going to be added to the table.


Example

navigate("http://www.fruitsinfo.com/tropical-fruits.php", "Wait")
wait(3)
add list to list(%one, $scrape attribute(<href=w"http://www.fruitsinfo.com/*.php">, "innertext"), "Delete", "Global")
add list to table as column(&test1, 0, 0, %one)


The script above will populate list %one, and then use the list to create one row in the table &test1. The table will be populated starting from column 0 row 0.


File:Add1.png

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox