对于Botton2的OnClick事件响应编写代码如下:
procedure TForm4。Button2Click(Sender: TObject);
begin
Form5.Label1.Caption:=”;
Form5.Show;
Form4.Hide;Form3.Table1.last;
Form4.Table1.last;
last1:=Form3.table1.Fields[1].AsString;
last2:=Form4.Table1.Fields[1].AsString;
Form3.Table1.First;
repeat
Form4.Table1.First;
repeat
-------------------
我现在就是硬的把TABLE1改成了ADOTABLE1 但在写last1:=Form3.ADOtable1. 只有就提示我程序有错不能调用??

解决方案 »

  1.   

    我新建了一个FORM5窗体了 但是它还是提示我 
    生成
      [错误] Unit4.pas(56): Undeclared identifier: 'Form5'
      [严重错误] Project1.dpr(9): Could not compile used unit 'Unit4.pas
    说为标识 FORM5?????
      

  2.   

    引用了FORM5了 后来又提示生成
      [错误] Unit4.pas(59): Undeclared identifier: 'last1'
      [错误] Unit4.pas(60): Undeclared identifier: 'last2'
      [错误] Unit4.pas(71): Undeclared identifier: 'last'