留
留香客
Unregistered / Unconfirmed
GUEST, unregistred user!
我在多线乘中使用模式窗口,结果不能返回,如下:
function tmytread.execute;
var
MyValue:integer;
begin
MyValue:=form2.QueryValue;
end;
在FORM2中:
var
ReturnValue:integer;
function Tform2.QueryValue:integer;
begin
form2.showmodal;
result:=ReturnValue;
form2.close;
end;
procedure Tform2.Btn1.click(sender as object);
begin
ReturnValue:=1;
form2.close;
end;
运行之后点击Tform2.Btn1关不掉form2,如何解决?
function tmytread.execute;
var
MyValue:integer;
begin
MyValue:=form2.QueryValue;
end;
在FORM2中:
var
ReturnValue:integer;
function Tform2.QueryValue:integer;
begin
form2.showmodal;
result:=ReturnValue;
form2.close;
end;
procedure Tform2.Btn1.click(sender as object);
begin
ReturnValue:=1;
form2.close;
end;
运行之后点击Tform2.Btn1关不掉form2,如何解决?