What I want to do is transpose 1D array (I have it in a column) to use after the function "Search 1D array", that only works if the array is linear. I have no possibility to change before the original 1D array to row. I have to transpose it from column to row. Any idea?
Solved! Go to Solution.
I want to change the representation of the data in memory (I think). The objective is to search in 1D array a value, but the function "search 1D array", only do the search linearly, so i have to change the data in the arry from column to row.
Can you please elobrate more on this
What do you mean by "change the data in the arry from column to row", Are you using 2D array or 1D array?
Change the representaion of the data in memory means do you want to change the index of element?
I understand your question little bit.
1) you cant able to connect the 2D array to the Search 1D Array.
2) if u want to search a element in a 2D array then u need to index your 2D array to a for loop using auto index function and need to search row by row.
3) After that if u auto indexed the data outside the for loop then u get a transposed array.
I want to know whats your problem?.Do u want search a element directly usind some functions?
I thought that I needed the data in a row, but the problem was the precision to search the value with "Search 1D array".
There is no problem, sorry one more time.
the function "Search 1D array", that only works if the array is linear. The help page says "Because the search is linear, you need not sort the array before calling this function". This doesn't require you to do anything to your 1D array, it only means that the search will stop at the first element that matches what you're looking for.
Btw, the OpenG Search 1D Array function will return an array of match indexes.
Show us your code and we'll be able to answer your question.
All is ok, don't worry jcarmody.
I was wrong. The problem was that I couldn't find the result because of the precision (Display format). But now, the problem is solved.