To create the Delete button
Step 1
To create the Delete button, first, add the Button in the Form1 and then rename the Caption to Delete.
Step 2
Next, just double click the Button to show the Code Explorer Window and you need to set the Program as followed;
- Table1.Delete;
- procedure TForm1.Table1BeforeDelete(DataSet:TDataSet);
- begin
- if messagedlg(' You want delete the data ',mtinformation,[mbyes,mbno],0)
- end;
=mrno then abort();
Step 3
Now, you need type and insert the code and set the Program as followed;
procedure Table1BeforeDelete(DataSet: TDataSet);
No comments:
Post a Comment