Add Table to Table

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with "Add Table to Table is a Data Command. This command appends a table at the end of another table. Starting Table is referring to the table that will be appe...")
 
(Example)
 
(3 intermediate revisions by one user not shown)
Line 3: Line 3:
 
This command appends a table at the end of another table.
 
This command appends a table at the end of another table.
  
Starting Table is referring to the table that will be appended to with another table.
+
'''Starting Table:''' refers to the table that will be appended to with another table.
  
Table to Add refers to the table that will be appended to the starting table.
+
'''Table to Add:''' refers to the table that will be appended to the starting table.
  
  
Line 11: Line 11:
  
 
<pre>
 
<pre>
create table from file("C:\\Users\\Desktop\\test1.txt", &test1)
+
create table from file("C:\\Users\\Documents\\test1.txt", &test1)
create table from file("C:\\Users\\Desktop\\test2.txt", &test2)
+
create table from file("C:\\Users\\Documents\\test2.txt", &test2)
 
plugin command("TableCommands.dll", "add table to table", &test1, &test2)
 
plugin command("TableCommands.dll", "add table to table", &test1, &test2)
 +
clear table(&test2)
 +
 
</pre>
 
</pre>
  
Line 22: Line 24:
  
  
[[File:t2t1.png]]
+
[[File:at2t.jpg]]
  
  
  
After running the command, the contents of &test 2 has been added to the end of table &test2.
+
After running the command, the contents of &test 2 has been added to the end of table &test1.
 +
The contents in &test2 will be deleted.
  
  
  
[[File:t2t2.png]]
+
[[File:at2t1.jpg]]

Latest revision as of 22:06, 23 September 2013

Add Table to Table is a Data Command.

This command appends a table at the end of another table.

Starting Table: refers to the table that will be appended to with another table.

Table to Add: refers to the table that will be appended to the starting table.


[edit] Example

create table from file("C:\\Users\\Documents\\test1.txt", &test1)
create table from file("C:\\Users\\Documents\\test2.txt", &test2)
plugin command("TableCommands.dll", "add table to table", &test1, &test2)
clear table(&test2)

Two tables are created from two files on the desktop.

The staring table in this case will be &test1. The table to add is &test2


At2t.jpg


After running the command, the contents of &test 2 has been added to the end of table &test1. The contents in &test2 will be deleted.


At2t1.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox