自定义类TMyQuery
//////////////////////////////////////////////////
  type
  TMyQuery = class(TADOQuery)
  public
    constructor Create(AOwner: TComponent); override;
    procedure ExecuteSQL( aSQLStr : string; RetValue : Boolean; aFlag : Integer = 0);
  end;
///////////////////////////////////////////////////
constructor TMyQuery.Create(AOwner: TComponent);
begin
  inherited Create(AOwner);
  Connection := F_Server.adocntConn ; //adocntAccount;
end;首先 ,adocntAccount 和 另外一个界面的 adocntConn 都是已经存在的TadoConnection控件(拖放上去的)
但是为什么 adocntAccount 编译的时候包错,没有定义控件, 但是用另外一个界面的adocntConn  就可以呢!
请高手帮忙看下!