
delphi7 新手,求方法实现想要的功能!谢谢!
这个是我FORM1的查询功能我已经实现了,现在我FORM2也要这一个相同的查询,现在的想法就是用IF语句在实现,varA,B,C:string;begina:=‘unit...
这个是我FORM1的查询功能 我已经实现了,现在我FORM2也要这一个相同的查询,现在的想法就是用IF语句 在实现,
var
A,B,C :string;
begin
a:= ‘unit1.test.qry1’
B:=‘unit2.test.qry1’
if
窗体1显示(这句是FORM1.show?);
then
C:=A;
else
C:=B
end
with 'c' do
begin
查询句....................
end
能帮我写下么,希望能看懂
a:= ‘unit1.form1.ADOquery1’
B:=‘unit2.form2.ADOquery1’
如果窗体1显示,C:=a 窗体1的with ‘C’ do.
窗体2显示,C:=B 则 with 'C‘ do
with ‘C’ do
begin
Close;
SQL.Clear;
SQL.Add('select * from dbo.inform );
Open;
end 展开
var
A,B,C :string;
begin
a:= ‘unit1.test.qry1’
B:=‘unit2.test.qry1’
if
窗体1显示(这句是FORM1.show?);
then
C:=A;
else
C:=B
end
with 'c' do
begin
查询句....................
end
能帮我写下么,希望能看懂
a:= ‘unit1.form1.ADOquery1’
B:=‘unit2.form2.ADOquery1’
如果窗体1显示,C:=a 窗体1的with ‘C’ do.
窗体2显示,C:=B 则 with 'C‘ do
with ‘C’ do
begin
Close;
SQL.Clear;
SQL.Add('select * from dbo.inform );
Open;
end 展开
展开全部
看不懂唉
a:= ‘unit1.test.qry1’
B:=‘unit2.test.qry1’
这什么意思?
a:= ‘unit1.test.qry1’
B:=‘unit2.test.qry1’
这什么意思?
更多追问追答
追问
a:= ‘unit1.form1.ADOquery1’
B:=‘unit2.form2.ADOquery1’
追答
你a,b是干什么的?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询