Forum Discussion
baxatob
8 years agoCommunity Hero
Hi
Create an alias for the textbox using wildcards or conditional name mapping, to cover all possible textbox' locations inside the grid. Then use if statement like:
for (i=0; i<rows.lenght; i++) { for (j=0; j<cells.lenght; j++) { if (rows[i].cells[j].textbox.Exists) { //doSomething; }}}
- Colin_McCrae8 years agoCommunity Hero
I suspect the cell can exist, but be empty. That being the case, the above would still write out all cells.
So probably better to extract the cell content, but only write it out if the string length is > 0. Or something along those lines.