Clear Table

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with "Clear Table is a Data Command. This command empties the contents of a table. == Example == <pre> navigate("http://www.fruitsinfo.com/tropical-fruits.php...")
 
(Example)
 
(3 intermediate revisions by one user not shown)
Line 3: Line 3:
 
This command empties the contents of a table.
 
This command empties the contents of a table.
  
 +
'''Table:''' The table that is going to be cleared.
  
 
== Example ==
 
== Example ==
Line 16: Line 17:
  
  
The script above will populate the list %one, add the list %one to the table &test1, wait 6 seconds, and then clear the table of its contents.  
+
The script above will populate the list %one, add the list %one to the table &test1, wait 6 seconds, and then clear the table of its contents.
 +
  
[[File:cleartab.png]]
+
[[File:cleartbl.jpg]]

Latest revision as of 17:03, 22 October 2014

Clear Table is a Data Command.

This command empties the contents of a table.

Table: The table that is going to be cleared.

[edit] Example

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


The script above will populate the list %one, add the list %one to the table &test1, wait 6 seconds, and then clear the table of its contents.


Cleartbl.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox