>dimension my_array(3,2)
>my_array[1,1] = 1
>my_array[1,2] = 3.00
>my_array[2,1] = 2
>my_array[2,2] = 450.00
>my_array[3,1] = 3
>my_array[3,2] = 2.00
>
>I want the see if value 3 exist in the 1st column
>
>if i do
>pos = ascan(my_array, 3) then pos will be = 2
>
>what to do ????
ASCAN() goes sequentially through the array in memory and the [1,2] element is found before the [3,1]. You could work with two one-dimension arrays instead, or write a special function to search just in a column.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only