No need to read in reverse, just move the contents of the else block to immediately after the foreach loop. The loop will end when the data is exhausted, and the if clause inside will ensure that only valid data is sent.
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
In reply to Re: Reading a spreadsheet
by Athanasius
in thread Reading a spreadsheet
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |