03-06-2011 04:41 AM
I want to go through a 5x3 array and delete all rows beginning with 3 or 7 (index =0). The result is a new array without the last mentioned rows.
03-06-2011 11:59 AM
Hi erica,
ok - and where's the problem?
Do you want us to produce ready-to-use code for you?
You could also try this on your own:
- Use IndexArray to get the first column.
- Use an autoindexing FOR loop to iterate over the full array and the first column
- If first-column value is not 3 or 7 then add row of full array to output array
You could also search the forum for topics like "filter array", such questions arise very often...
03-07-2011 08:58 AM
Hi,
I would connect it to a for loop with auto-index on.
In each loop, check if the first index is equal to 3 or 7 (whatever you want).
If yes, delete the row, if not, keep going~~