Can you explain little bit more about the problem.
but as per above info, dr_work1=arr_DataRow(0)
here you given index as 0 if it not increment each time then it will take same array of item.
here you can use loop based on your input array variable
or
first get how many items are there in array var by using arrVar.count()
use loop give count over there in loop, inside use variable index in the place 0(dr_work1=arr_DataRow(0)) increase that index on each iteration.