Account debit credit 3111131 162,87 3111131 162,87 321 174,67 24321131 37,46 221111 212,84 3111111 11,80 3111111 11,80 243211111 0,76 I pretend the replace the original Cursor TESTE with this result: 225111 162,87 24321131 37,46 221111 212,84 225111 11,80 24321111 0,71 In fact,base on orginal Cursor TESTE, i need to do theses changes 1 line : if account = '311' aand Debit <> 0 then account = 225111 2.line : if account = '311' and Credit <> 0 then DELETE 3.line: if account = '321' then DELETE 4.line: if account = '24321131' OK Keep 5.line: if account = '221 ' OK Keep 6.line : if account = '311' aand Debit <> 0 then account = 225111 7.line : if account = '311' and Credit <> 0 then DELETE 8.line : if account = '243211111' the OK Keep Note : i have try this code Select * from TESTE into Cursor NewCursor READWRITE --I have make the changes Select TESTE DELE ALL Append from dbf("NewCursor")But the result of the Original Cursor TESTE don´t change.