$list insert range

Allows you to insert a group of elements into a list at a specific index.


Example

Running this code will add "1 2 3 4 7 8 9 10" to the list named "%List1", and will add "5 6" to "%List2". Then, the list "%List2" will be inserted to "%List1" starting from the 4th in the list.

add list to list(%List1,$list from text("1 2 3 4 7 8 9 10"," "),"Delete","Global")
add list to list(%List2,$list from text("5 6"," "),"Delete","Global")
alert($plugin function("Data and Files Automation.dll", "$list insert range", %List1, %List2, 4))

Was this helpful?

Previous Article

$list insert

Next Article

$list merge