鱼C论坛

 找回密码
 立即注册
查看: 3149|回复: 2

问个问题啊 进来看看啊

[复制链接]
发表于 2012-6-20 11:35:57 | 显示全部楼层 |阅读模式
7鱼币
用一个主窗体上的一个BUTTON ,调用另外一个FORM,怎么就不行了?之前一个都可以,在加一个就不行,帮帮忙吧!谢谢了file:///E:/Documents%20and%20Settings/Administrator/Application%20Data/Tencent/Users/915682514/QQ/WinTemp/RichOle/739(P2`2YA~T5VJZ136YD)4.jpg

想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
 楼主| 发表于 2012-6-20 11:37:08 | 显示全部楼层
报错[Pascal Error] Unit1.pas(1): Unable to invoke Code Completion due to errors in source code
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2012-6-20 11:37:51 | 显示全部楼层
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, DB, ADODB, StdCtrls, Grids, DBGrids;

type
  TForm1 = class(TForm)
    DBGrid1: TDBGrid;
    Button1: TButton;
    Button2: TButton;
    ADOConnection1: TADOConnection;
    ADOQuery1: TADOQuery;
    DataSource1: TDataSource;
    Button3: TButton;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
    procedure Button3Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

uses Unit2;

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
  Form2.ShowModal;
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  ADOQuery1.Active:=true;
end;

procedure TForm1.Button3Click(Sender: TObject);
begin
  Form3.ShowModal;
end;

end.
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-12-23 14:21

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表