注册 登录
编程论坛 Delphi论坛

看看有什么问题??

like1314 发布于 2007-06-06 17:08, 593 次点击

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'

1 回复
#2
anthony6342007-06-06 17:46

我这里编译没问题,可以通过,即使你后面少了一个end.也不会出现上面的提示,那可能是你的output路径里原来的exe文件有问题,比如属性为只读之类导致无法重新生成。

1