if u want the L value aray to have the size of sum of the two args
ex
ar1=(2,2,1)
ar2=(1,4)
'expected otput ar3(2,2,1,1,4) if so do this
dim ar3() as integer ' dynamic array
dim lar1
dim lar2
....
lar1=ubound(ar1)
lar2=ubound(ar2)
redim ra3(lar1+lar2) as integer
'use a loop to copy the value