This test program illustrates the point. How should I code this simple task?
Code: [Local Link Removed for Guests]
dim my_array(20) = 1,2, 3, 4, 5, 6, 7, 8, 9, 10,11,12,13,14,15,16,17,18,19,20
dim my_other_array(20)
adim = 20
copy_array my_array(),my_other_array(),adim
'with braces, the error is "Type mismatch line 5"
'without braces the error is "No such variable line 5"
'if I put a value inside the braces the error is "Type mismatch line 5"
for p=1 to adim
wlog my_other_array(p)
next
end
sub copy_array(in_array,out_array,array_dim)
dim in_array(array_dim)
dim out_array(array_dim)
for i= 0 to dim
out_array(i) = in_array(i)
next
end sub