03-10-2008 08:37 AM
03-10-2008 08:41 AM
Delete From Array.
What you don't define is 'empty'. The data in a row has to be something (empty string, all zeroes, whatever) and if your problem is identifying those rows, you need to provide some information on the type of array (numberic, string, Boolean), and what the data is.
03-10-2008 09:03 AM - edited 03-10-2008 09:05 AM
This is a solution for a numeric 2D-array.
However, this is a slow example and if you use both positive and negative values in you array, this could not always work properly.
03-10-2008 09:08 AM
One should not mistake zeros with emptiness.
Zeros (0) are values.. Empty is ... well... nothing..
So as Dennis mentionned, the term "empty" needs to be defined, because there is no need to remove "empty" entries because they are not there. 😉
03-10-2008 09:13 AM
03-10-2008 09:30 AM
Heinen,
You are assuming that it is an array of numerics. As Dennis mentionned, the array type was not mentionned. It could be strings, clusters, references, etc., as long as it is of the same type.
In the case of a numeric array, if the 2D array was padded, then the row was not empty 😉
Let's find out the rest of the story.. Karthi??
03-10-2008 12:03 PM
Heinen wrote:
This is a solution for a numeric 2D-array.
However, this is a slow example and if you use both positive and negative values in you array, this could not always work properly.