ok
the most simple aproach should be ...
create one stackArray or tempArray and circulate
dim a[5]=>(1,2,3,4,5) as sys
dim b[5]=>(6,7,8,9,10) as sys
dim t[5]=>(0,0,0,0,0) as sys
string cr= chr(13)
string bf= ""
sys n
sub swap()
'copy b->t[]
for n=1 to 5
t[n]=b[n]
next n
'copy a->b[]
for n=1 to 5
b[n]=a[n]
next n
'copy t->a[]
for n=1 to 5
a[n]=t[n]
next n
end sub
swap()
'show
for n = 1 to 5
bf = bf + str(a[n]) + cr
next n
for n = 1 to 5
bf = bf + str(b[n]) + cr
next n
print bf
.