Is it possible to pass a single column of a multidimensional array to a function - have the function operate on that as it would on any single dimension array - and see the results in the multidimensional array?
I have a function that I would like it to be able to handle both, single dimension arrays and single columns of multidimensional arrays.
I keep getting "error 58: Type mismatch, at parameter 1" during the compile. Can't wrap my head around the addressing...
Code: Select all
dim ary(5,5) as integer
test( ary(0,2)) ' "error 58: Type mismatch, at parameter 1"
test( @ary(0,2)) ' "error 58: Type mismatch, at parameter 1"
sub test( f_ary() as integer ptr)
dim x as integer
x = 5
f_ary(3) = x