UniTable1.Delete;
Posted: Sat 04 Jun 2022 17:26
Good afternoon!
there is a code:
all rows in the table are deleted from me, how do I delete only record № 1?it seemed to me that if I put the carriage on the the first line (UniTable 2.RecNo:=1;) then the current row will be deleted, but now all rows are being deleted from my table.
how do I delete only line №1?
there is a code:
Code: Select all
procedure TFormP1.StringGrid2CellDblClick(const Column: TColumn;
const Row: Integer);
begin
UniTable2.RecNo:=1;
UniTable2.Delete;
ShowMessage('record '+IntToStr(UniTable2.RecNo)+' deleted');
end;
how do I delete only line №1?