S
sharkboy
Unregistered / Unconfirmed
GUEST, unregistred user!
初学程序经常不能运行,unit2是打印预览preview是好的
unit1不能运行重建了几次不行
unit1如下
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
uses unit2;
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
form2.quickrep.preview
end;
end.
form2、quickrep都和unit2中控件名是对应的,也不报错,只是一运行就退出来还是编辑
态
unit1不能运行重建了几次不行
unit1如下
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
uses unit2;
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
form2.quickrep.preview
end;
end.
form2、quickrep都和unit2中控件名是对应的,也不报错,只是一运行就退出来还是编辑
态