Hi all,
I have 2 dws (dw_1 and dw_2) for which I am trying to do a rowscopy from dw_1 to dw_2. I am getting a return code -1 all the time. What could be the reason? This is my code:
Long llRow
Integer i, j, liReturn, liRowsCopy, liRowsMove
IF dw_1.RowCount() > 0 THEN
FOR i = j TO dw_1.RowCount()
llRow = dw_1.GetSelectedRow(i)
IF llRow > 0 THEN
liRowsCopy = dw_1.RowsCopy(llRow, llRow, Primary!, dw_2, 1, Primary!)
j = j + 1
ELSE
EXIT
END IF
NEXT
END IF
Thanks in advance.
I have 2 dws (dw_1 and dw_2) for which I am trying to do a rowscopy from dw_1 to dw_2. I am getting a return code -1 all the time. What could be the reason? This is my code:
Long llRow
Integer i, j, liReturn, liRowsCopy, liRowsMove
IF dw_1.RowCount() > 0 THEN
FOR i = j TO dw_1.RowCount()
llRow = dw_1.GetSelectedRow(i)
IF llRow > 0 THEN
liRowsCopy = dw_1.RowsCopy(llRow, llRow, Primary!, dw_2, 1, Primary!)
j = j + 1
ELSE
EXIT
END IF
NEXT
END IF
Thanks in advance.