Please help me. I am a beginner.
I have a problem that I have written a code in which a button check for the row either it is selected or not. And if it is selected then it Moves the row from one Datawindow to another. But the problem is;
When I move single row it works fine.
While it also move multi rows which are having a row space in between rows. i.e. 1,3,6 or 2,6,8
????? And when I select multiple rows simultaneously then it moves only single row. i.e. Row# 1,2 or 2,3,4 ?????
My code is:
boolean result
for sRow = 1 to dw_lhr.rowCount()
result = dw_lhr.IsSelected(sRow)
IF result THEN
dw_lhr.RowsMove(sRow, sRow, Primary!, dw_grn, 1, Primary!)
END IF
next
I have a problem that I have written a code in which a button check for the row either it is selected or not. And if it is selected then it Moves the row from one Datawindow to another. But the problem is;
When I move single row it works fine.
While it also move multi rows which are having a row space in between rows. i.e. 1,3,6 or 2,6,8
????? And when I select multiple rows simultaneously then it moves only single row. i.e. Row# 1,2 or 2,3,4 ?????
My code is:
boolean result
for sRow = 1 to dw_lhr.rowCount()
result = dw_lhr.IsSelected(sRow)
IF result THEN
dw_lhr.RowsMove(sRow, sRow, Primary!, dw_grn, 1, Primary!)
END IF
next