delete selected record in tViewlist with mysql
Posted: 25.08.2014, 19:43
iam trying to delete selected item from TListview and from mysql i do somthing like this
but i got sql is emty any idea ?
Code: Select all
procedure Tusersitngs.btnRemoveClick(Sender: TObject);
begin
delquery.Active := True;
delquery.Close;
delquery.SQL.Clear;
delquery.SQL.Text := 'delete from store where imit := Tlistview.item.selected';
delquery.ExecSQL;
end;