Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.
procedure TfrmMain.DeleteTask; var Query: TADOQuery; LId: String; begin //Grabs the ID of the selected row if Assigned(cxTasks.FocusedNode) then LId := cxTasks.FocusedNode.Texts[cxTasksID.ItemIndex]; //Attempts to delete that row try Query := TADOQuery.Create(nil); Query.Connection := conSql; Query.SQL.Add('Select * FROM Tasks WHERE id='+LId); Query.Active := True; Query.Delete; Query.Active := False; qryTasks.Refresh; //Refresh //Query.SQL.Add('DELETE FROM Tasks WHERE id='+LId); //Query.ExecSQL; finally FreeAndNil(Query); end; end;
|Help on project with Soap||10||37|
|upcasting down casting object remains same but refernece changes||8||47|
|How to open a new windows chrome resized and disabled the toolbar?||3||33|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
12 Experts available now in Live!