테이블 셀의 인덱스를 리턴하는 API이다.
| Parameters | Type | Description |
|---|---|---|
| nRow | long | 행 인덱스 |
| nColumn | long | 열 인덱스 |
| Type | Description |
|---|---|
| short | 셀의 인덱스 |
셀의 x, y 좌표를 기준으로 행과 열이 구분된다.
nRow와 nColumn에 해당하는 셀이 없는 경우 -1 값이 리턴된다.
function btn_on_mouseup(objInst)
{
var i, j, cell_index, cell_text;
for (i = 0; i < table.getrowcount(); i++) {
for (j = 0; j < table.getcolumncount(); j++) {
cell_index = table.getcellindex(i,j);
cell_text = table.getcelltextex(cell_index);
factory.consoleprint("i = " + i +",j = " + j);
factory.consoleprint("cell_index = " + cell_index);
factory.consoleprint("cell_text = " + cell_text);
factory.consoleprint("=========================================");
}
}
}