unit Unit3;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Grids, DBGrids, DB, ADODB;
type
TForm3 = class(TForm)
ADOTable1: TADOTable;
DataSource1: TDataSource;
DBGrid1: TDBGrid;
Label1: TLabel;
Button1: TButton;
Button2: TButton;
Button3: TButton;
Button4: TButton;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure Button3Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form3: TForm3;
implementation
{$R *.dfm}
procedure TForm3.Button1Click(Sender: TObject);
begin
self.ADOTable1.Append;
end;
procedure TForm3.Button2Click(Sender: TObject);
begin
self.ADOTable1.Edit;
end;
procedure TForm3.Button3Click(Sender: TObject);
begin
if application.MessageBox('确定要删除记录吗?','删除记录',MB_OKCANCEL)=MB_OK then
begin
self.ADOTable1.Delete;
end
运行怎么会
[Fatal Error] Could not create output file 'F:\书店管理系统\Project1.exe'