var
adoquery1:Tadoquery;
begin
adoquery1:=Tadoquery.create(nil);create方法中添入“nil”参数,代表什么,为什么添入“application"或该窗体上的”button1"也可
adoquery1:=Tadoquery.create(button1);
adoquery1:Tadoquery;
begin
adoquery1:=Tadoquery.create(nil);create方法中添入“nil”参数,代表什么,为什么添入“application"或该窗体上的”button1"也可
adoquery1:=Tadoquery.create(button1);
如果用nil,表示不释放,也就是说adoquery1得由你自己来释放。