D duwamish Unregistered / Unconfirmed GUEST, unregistred user! 2007-02-14 #1 在主窗体上打开了好多窗体,窗体的名称在打开时存放到一个字符串('formStr')中, 怎么写才能关闭打开的窗体呢???? 我用 tform(forstr).close报错。。。
3 3868474 Unregistered / Unconfirmed GUEST, unregistred user! 2007-02-14 #2 var i: integer; begin for i := 0 to screen.FormCount -1 do if screen.forms.name = 'formStr' then begin screen.forms.close; break; end; end;
var i: integer; begin for i := 0 to screen.FormCount -1 do if screen.forms.name = 'formStr' then begin screen.forms.close; break; end; end;