$list merge

Allows you to merge two lists.


Example

Running this code will add 1, 2, and 3 to the list named "%Data1". Also, it will add 1, 2, 3, and 4 to the list named "%Data2".

Running this code will merge the lists "%Data1" and "%Data2", showing it as a row format in the alert box.

Running this code will merge the lists "%Data1" and "%Data2", showing it as a column format in the alert box.

add item to list(%Data1,1,"Don\'t Delete","Global")
add item to list(%Data1,2,"Don\'t Delete","Global")
add item to list(%Data1,3,"Don\'t Delete","Global")
add item to list(%Data2,1,"Don\'t Delete","Global")
add item to list(%Data2,2,"Don\'t Delete","Global")
add item to list(%Data2,3,"Don\'t Delete","Global")
add item to list(%Data2,4,"Don\'t Delete","Global")
alert($plugin function("Data and Files Automation.dll", "$list merge", "%Data1
%Data2", "Row", ","))
alert($plugin function("Data and Files Automation.dll", "$list merge", "%Data1
%Data2", "Col", ","))

Was this helpful?

Previous Article

$list insert range

Next Article

$list random