07-24-2014 11:14 AM
I have an array of 2X10 size. In the first column, the elements are 10 and in the second column the elements are only 6. If I use array size and index the size of second column, the value given out is 10 which is supposed to be 6. I noticed that it is creating blank or null values in the column for the remaining four. How do I eliminate the blank values and only get the actual sze of the column?
Solved! Go to Solution.
07-24-2014 11:18 AM
Index the colum and use Search 1D Array for an empty string. The result should be the number of non-empty strings. If the result is -1, use the actual array size.
07-24-2014 11:19 AM - edited 07-24-2014 11:19 AM
2D arrays are rectangular. All rows need to be the same size and all columns need to be the same size.
"blank" (=empty string" is only defined for string, but you seem to deal with numerics. (it is not entirely clear if you talk about the element values or the sizes).
If you want ragged arrays, use a 1D array where each element is a cluster containing a 1D array.