table.moveContents
| Syntax |
table.moveContents (addr1, addr2)
|
| Params |
addr1 is the Object Database address indicating the location of the table whose contents are to be moved. addr2 is the Object Database address indicating the new table location for the items being moved.
|
| Action |
Moves all of the objects in the table at addr1 to the table in addr2, replacing any elements in table2 with names identical to objects in table1 and creating new entries for all other objects being moved.
|
| Returns |
True
|
| Examples |
The examples table contains a table called subTable1 that has one entry. Another table in examples, destTable, has no items. To move the contents of subTable1 to destTable, type and execute: table.moveContents(@examples.subTable1,@examples.destTable)
Examine the examples table and you'll see that subTable1 is now empty, while destTable has examples.subTable1's previous contents. |
| Errors |
If addr1 and addr2 are not both valid table addresses, an error is generated.
|
| See Also |
table.copyContents
|