I dont know why RObK would say something thats clearly incorrect.
unfortunately you cant use arrays as argument parameters in either DBC and or DBP
consult this example to show you cant.
sync on
sync rate 0
dim myarray(1)
myarray(1) = 50
addme(myarray(1))
disable escapekey
while escapekey()=0
text 10,10,STR$(myarray(1))
sync
endwhile
undim myarray(1)
end
function addme(myarray(1))
myarray(1) = myarray(1) + 45
endfunction
this example shows the global availability of an array data inside a function.
usage within a parameter will require either a hand over to a variable or a Typed Array will work as a parameter call.
sync on
sync rate 0
dim myarray(1)
myarray(1) = 50
addme()
disable escapekey
while escapekey()=0
text 10,10,STR$(myarray(1))
sync
endwhile
undim myarray(1)
end
function addme()
myarray(1) = myarray(1) + 45
endfunction
this snippet does not cover using a globallly declared variable or creating a Typed array.