比如下面代码
procedure TForm1.Button1Click(Sender: TObject);
var
tmpf:TForm;
begin
tmpf:=TForm.Create(nil);
tmpf.Name:='';
tmpf.Caption:='';
edit1.text:=tmpf //这里希望edit1里出现'tmpf'
end;该如何实现?
procedure TForm1.Button1Click(Sender: TObject);
var
tmpf:TForm;
begin
tmpf:=TForm.Create(nil);
tmpf.Name:='';
tmpf.Caption:='';
edit1.text:=tmpf //这里希望edit1里出现'tmpf'
end;该如何实现?
楼主的意思是不是想要得到FORM的caption?
楼主可能是这个意思
见:
http://topic.csdn.net/u/20071219/17/d3d38ecc-2e88-4888-90cf-35bbe28f39cd.html有人说程序在编译时所有的变量都消失了。我没有学过汇编,不知道是不是这样。看 yrb 的意思似乎还是有可能的。真的吗?我再等等。