X
xuhongxinghome
Unregistered / Unconfirmed
GUEST, unregistred user!
unit unit1;
....
var
form1: tform1;
gwdm:string;
implementation
....
procedure Tform1.formshow(Sender:tobject);
begin
query1.close;
query1.sql.clear;
query1.sql.add('select * from table_x where GWDM='+#39+GWDM+#39;
QUERY1.PREPARE;
QUERY1.OPEN;
end;
END.
UNIT UNIT2;
USES
。。。
UNIT1;
...
PROCEDURE GWDM_USE(CONST in_GWDM:STRING);
implementation
....
PROCEDURE GWDM_USE(CONST in_GWDM:STRING);
begin
form1:=tform1.create(application);
with form1 do
try
gwdm:=in_gwdm;
SHOWMODAL;
finally
free;
end;
end
end.
调用 gwdm_use('KRD');
这样的写法,是否是完全错误的(按照规范来看),
....
var
form1: tform1;
gwdm:string;
implementation
....
procedure Tform1.formshow(Sender:tobject);
begin
query1.close;
query1.sql.clear;
query1.sql.add('select * from table_x where GWDM='+#39+GWDM+#39;
QUERY1.PREPARE;
QUERY1.OPEN;
end;
END.
UNIT UNIT2;
USES
。。。
UNIT1;
...
PROCEDURE GWDM_USE(CONST in_GWDM:STRING);
implementation
....
PROCEDURE GWDM_USE(CONST in_GWDM:STRING);
begin
form1:=tform1.create(application);
with form1 do
try
gwdm:=in_gwdm;
SHOWMODAL;
finally
free;
end;
end
end.
调用 gwdm_use('KRD');
这样的写法,是否是完全错误的(按照规范来看),