河北邮币卡最新新闻:delphi 的简单问题

来源:百度文库 编辑:神马品牌网 时间:2024/05/04 18:35:29
简单的问题
通过form1上一图片控件启动form2 ,

在该图片控件加入Form2.show;时

procedure TForm1.Label2Click(Sender: TObject);
begin
Form2.show;
end;

end.

下面提示框出现如下提示
〔Pascal Error〕Unit1.pas(1):Unable to Code Completion due to errors in source code
我数据库建好了,也联好了,就这卡住了,谢谢指教,给分

已帮你测试了,出现这种情况的原因是,你没有将form2的unit,运用到form1的unit中.
运用方法,选择form1窗体,然后点file--use unit出现对话框,选择unit2点OK。这是将unit2运用到unit1中,然后,按照以上方法,选择 form2窗体,将unit2运用到unit1中。