From: ChrisH Date: 2007-02-09T03:50:13+09:00 Subject: Re: Newbie problem with modifying array correctly On Feb 8, 12:37 pm, Marco Guiseppe wrote: > Here is an example with an array that is similar to the one my program > will generate: > > http://pastie.caboo.se/38816 > > Here is a smaller example to make it easier to understand: > > http://pastie.caboo.se/38822 HI Marco I believe the problem is you process each row separately in the first loop, then go back and process the first element of each row, which in some cases puts in a value that doesn't fit in the row. I modified your example a bit, it does the first row, then for each subsequent row it checks the first element before doing the rest of the row. Have a look at http://pastie.caboo.se/38882 Cheers Chris