Iterate on TUniTable with delete
Posted: Sun 06 Jul 2014 17:44
Hello
Look at this code:
I want to delete some records of a table, that is accessing with a TUniTable component.
My question is: If i delete a record, does Next and Eof will work properly ?
Thanks
Look at this code:
Code: Select all
MyUniTable.first;
while not MyUniTable.eof do begin
if (MyUniTable.FieldByName('some_field').asInteger>=300) then MyUniTable.delete;
MyUniTable.Next;
end;
My question is: If i delete a record, does Next and Eof will work properly ?
Thanks